/* Auth pages — centered card, single-column.
   Used by /signup and /login. */

body.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
}

.auth-brand {
  display: flex;
  align-items: baseline;
  gap: 7px;
  justify-content: center;
  margin-bottom: 28px;
}
.auth-brand .mark {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .5px;
}
.auth-brand .suffix {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: .2px;
}
.auth-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 0 24px;
  line-height: 1.5;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}
.auth-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .3px;
}
.auth-field input {
  background: var(--bg-inset);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-button);
  padding: 11px 13px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: border-color .15s ease;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--gold);
}
.auth-field input::placeholder { color: var(--text-faint); }

.auth-hint {
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: -8px;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ─── Stripe section (placeholder until backend Stripe is live) ─────── */
.auth-stripe {
  background: var(--bg-inset);
  border: 0.5px dashed var(--border-dashed);
  border-radius: var(--radius-button);
  padding: 14px 13px;
  margin: 4px 0 16px;
}
.auth-stripe .stripe-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .3px;
  margin-bottom: 8px;
}
.auth-stripe .stripe-label .ph { color: var(--gold); font-size: 15px; }
#stripe-card-element {
  background: var(--bg-page);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 11px 13px;
  font-size: 13px;
  color: var(--text-tertiary);
  min-height: 22px;
}
.auth-stripe .stripe-pending {
  font-style: italic;
  color: var(--text-faint);
}
.auth-stripe .stripe-micro {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.5;
}

/* ─── T&C checkbox row ─────────────────────────────────────────────── */
.auth-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 18px;
  cursor: pointer;
}
.auth-check input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: background .12s ease, border-color .12s ease;
}
.auth-check input[type=checkbox]:hover {
  border-color: var(--gold);
}
.auth-check input[type=checkbox]:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.auth-check input[type=checkbox]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--on-gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.auth-check label {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}
.auth-check label a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-check label a:hover { color: var(--gold-hover); }

.auth-error {
  background: rgba(204, 125, 98, 0.12);
  border: 0.5px solid rgba(204, 125, 98, 0.45);
  color: var(--verdict-ai);
  border-radius: var(--radius-button);
  padding: 10px 12px;
  font-size: 12.5px;
  margin-bottom: 14px;
  display: none;
  line-height: 1.5;
}
.auth-error.is-visible { display: block; }

/* Auth-submit inherits the new fixed-shape btn-primary; we just stretch it to
   fill the card and add top spacing. Don't override padding/font-size — let
   the btn-primary spec (44px height, 16px font) carry through. */
.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 22px 0 0;
}
.auth-switch a {
  color: var(--gold);
  font-weight: 600;
  margin-left: 4px;
}
.auth-switch a:hover { color: var(--gold-hover); }

.auth-micro {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 18px;
  line-height: 1.5;
}
.auth-micro a { color: var(--text-tertiary); text-decoration: underline; text-underline-offset: 2px; }
.auth-micro a:hover { color: var(--gold); }
