/* Auth / billing screens — matches login/signup/billing markup */

.auth-page {
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(232, 192, 74, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

.auth-shell {
  max-width: 26rem;
  margin: 0 auto;
  padding: calc(var(--safe-top, 0px) + 3rem) 1.25rem calc(var(--safe-bottom, 0px) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.auth-brand-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface);
}

.auth-brand-mark .ico {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-brand-title {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-word-second { opacity: 0.85; }
.brand-word-mind { color: var(--spot-gold, #e8c04a); }

.auth-card {
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.auth-lead {
  margin: 0 0 1.35rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--text-secondary);
}

.auth-field input {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 450;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  outline: none;
}

.auth-field input:focus {
  border-color: var(--spot-gold, #e8c04a);
  box-shadow: 0 0 0 2px rgba(232, 192, 74, 0.18);
}

.auth-hint {
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.auth-error {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  background: rgba(196, 69, 85, 0.12);
  border: 1px solid rgba(196, 69, 85, 0.35);
  color: #f0a0a8;
  font-size: 0.82rem;
}

.auth-status {
  margin: 0 0 1rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  background: rgba(120, 180, 170, 0.12);
  border: 1px solid rgba(120, 180, 170, 0.3);
  color: var(--spot-slate, #78b4aa);
  font-size: 0.85rem;
}

.auth-submit,
.auth-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.auth-submit {
  background: var(--spot-gold, #e8c04a);
  color: #1a1508;
}

.auth-submit:hover { opacity: 0.92; }
.auth-submit:disabled { opacity: 0.55; cursor: wait; }

.auth-secondary {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.auth-secondary:hover {
  color: var(--text);
  border-color: var(--spot-slate, #78b4aa);
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.auth-switch {
  margin: 1.15rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.auth-switch a,
.auth-legal a {
  color: var(--spot-gold, #e8c04a);
  text-decoration: none;
}

.auth-switch a:hover,
.auth-legal a:hover { text-decoration: underline; }

.auth-legal {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.45;
}

.legal-page .auth-shell { max-width: 42rem; }

.legal-prose {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.legal-prose h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
}

.legal-prose p { margin: 0 0 0.85rem; }
.legal-prose ul { margin: 0 0 0.85rem; padding-left: 1.2rem; }
.legal-meta {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.auth-shell-wide {
  max-width: 40rem;
}

.account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.85rem;
}

.account-nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.account-nav a:hover {
  color: var(--spot-gold, #e8c04a);
}

.pricing-amount {
  margin: 0 0 0.35rem;
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--spot-gold, #e8c04a);
}

.pricing-trial {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pricing-features {
  margin: 0 0 1.35rem;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pricing-features li { margin-bottom: 0.35rem; }

.auth-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.key-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg);
}

.key-row.is-revoked { opacity: 0.55; }

.key-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.key-meta code {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.78rem;
  color: var(--spot-slate, #78b4aa);
}

.key-dates {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.key-revoke {
  width: auto;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.admin-table select {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.35rem 0.4rem;
  max-width: 7.5rem;
}

.admin-email { font-weight: 550; }
.admin-name {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.admin-save {
  width: auto;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
}
