/* Customer auth surfaces (/login, /register, /forgot-password).
 *
 * These three pages render inside layouts/marketing-proposal, so they consume the
 * same tokens as every other marketing page (--blue, --ink, --muted, --line, --paper)
 * instead of the retired marketing.css palette. This file only carries the few
 * auth-specific pieces the proposal stylesheet does not define.
 */

.authMain { background: var(--paper); }

.authPage {
  padding: 56px 0 72px;
  min-height: 70vh;
  background:
    radial-gradient(1200px 420px at 15% -10%, #1468f312, transparent 60%),
    var(--paper);
}

.authWrap { margin: 0 auto; }

.authCard {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.authTitle {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 950;
  color: var(--ink);
}

.authSub {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.authField { margin-bottom: 15px; }

.authLabel {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.authInput {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  box-sizing: border-box;
}

.authInput::placeholder { color: #8ba3b8; }

.authInput:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #1468f31f;
}

.authInput:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.authSubmit {
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  background: var(--blue);
  color: #fff;
}

.authSubmit:disabled { opacity: 0.55; cursor: not-allowed; }

.authAlt {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.authAlt p { margin: 0; font-size: 13px; color: var(--muted); }

.authAlt a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.authAlt a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Consent row on /register.
 * Each legal link stays on one line and the sentence wraps between them, so the
 * two labels can never sit on top of each other at any width. */
.authConsent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 25px;
}

.authConsent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.authConsentLabel {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--muted);
  cursor: pointer;
}

.authLegalLink {
  display: inline;
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: normal;
}

.authLegalLink:hover { color: var(--ink); }

.authLegalLink:focus-visible,
.authAlt a:focus-visible,
.authSubmit:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* flash / validation messages (marketing.css used to supply these) */
.alert-box {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.alert-box.alert-error {
  border-color: #f0c9c9;
  background: #fdf4f4;
  color: #8f1f1f;
}

@media (max-width: 520px) {
  .authPage { padding: 34px 0 56px; }
  .authCard { padding: 24px 20px; border-radius: 16px; }
  .authTitle { font-size: 26px; }
}
