/* Customer auth form styles — login, signup, reset, claim, verify pages.
   Assay design system (restyled 2026-07-02): ink canvas #08090A, amber
   #F0B544 accent, verified-green #5BD08A, danger #E4644C, hairline borders
   rgba(255,255,255,.07). Space Grotesk display / Satoshi body / JetBrains
   Mono data — fonts are loaded by _titratelab_base.html.
   Scoped to .tl-auth-* classes only: the choose-plan / pro-checkout pages
   in templates/customer_auth/ ship their own scoped styles and do not use
   these classes. Uses tokens from titratelab_tokens.css. */

.tl-auth-card {
  max-width: 440px;
  margin: clamp(40px, 9vh, 96px) auto var(--tl-space-12);
  padding: 44px 40px 36px;
  background:
    linear-gradient(180deg, rgba(11,29,48,0.025), rgba(11,29,48,0.0) 150px),
    #f5f9fd;
  border: 1px solid rgba(11,29,48,0.07);
  border-radius: 10px;
  box-shadow: 0 24px 48px -24px rgba(245,249,253,0.5);
}

/* Amber mono eyebrow with a leading dash — same section-marker language
   as /vendors ("—— VENDOR TRUST LEADERBOARD"). */
.tl-auth-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--tl-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tl-gold);
}

.tl-auth-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--tl-gold);
  opacity: 0.55;
}

.tl-auth-card h1 {
  font-family: 'Space Grotesk', var(--tl-sans);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--tl-ink);
  text-wrap: balance;
}

.tl-auth-card .lede {
  font-family: var(--tl-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--tl-muted);
  margin: 0 0 24px;
}

.tl-auth-card p {
  font-family: var(--tl-sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--tl-muted);
}

.tl-auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 22px;
}

.tl-auth-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--tl-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tl-muted);
}

.tl-auth-form input[type="email"],
.tl-auth-form input[type="password"],
.tl-auth-form input[type="text"] {
  width: 100%;
  background: #f5f9fd;
  color: var(--tl-ink);
  font-family: var(--tl-sans);
  /* 16px floor: <16px makes iOS Safari zoom the viewport on focus */
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(11,29,48,0.1);
  border-radius: 6px;
  caret-color: var(--tl-gold);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-transform: none;
  letter-spacing: 0;
}

.tl-auth-form input:hover {
  border-color: rgba(11,29,48,0.16);
}

.tl-auth-form input:focus {
  outline: none;
  border-color: rgba(29,99,211,0.7);
  box-shadow: 0 0 0 3px rgba(29,99,211,0.13);
  background: #f5f9fd;
}

/* Chrome/Safari autofill paints a pale yellow fill by default — force the
   ink surface + light text so autofilled fields don't glow. */
.tl-auth-form input:-webkit-autofill,
.tl-auth-form input:-webkit-autofill:hover,
.tl-auth-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #f5f9fd inset;
  -webkit-text-fill-color: var(--tl-ink);
  caret-color: var(--tl-ink);
  transition: background-color 9999s ease-out 0s;
}

.tl-auth-form button[type="submit"] {
  margin-top: 10px;
  background: var(--tl-gold);
  color: #f5f9fd;
  font-family: 'Space Grotesk', var(--tl-sans);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.tl-auth-form button[type="submit"]:hover {
  background: var(--tl-gold-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -8px rgba(29,99,211,0.45);
}

.tl-auth-form button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: none;
}

.tl-auth-form button[type="submit"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #f5f9fd, 0 0 0 4px rgba(29,99,211,0.85);
}

.tl-auth-error {
  background: rgba(191,62,41,0.08);
  border: 1px solid rgba(191,62,41,0.3);
  border-left: 2px solid var(--tl-alert-red);
  color: #bf3e29;
  padding: 12px 14px;
  border-radius: 6px;
  margin: 12px 0 18px;
  font-family: var(--tl-sans);
  font-size: 14px;
  line-height: 1.5;
}

.tl-auth-success {
  background: rgba(31,122,77,0.07);
  border: 1px solid rgba(31,122,77,0.28);
  border-left: 2px solid var(--tl-signal-green);
  color: var(--tl-signal-green);
  padding: 12px 14px;
  border-radius: 6px;
  margin: 12px 0 18px;
  font-family: var(--tl-sans);
  font-size: 14px;
  line-height: 1.5;
}

/* Resend-verification one-liner (shown under the unverified-email error). */
.tl-auth-resend {
  margin: -6px 0 4px;
}

.tl-auth-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--tl-sans);
  font-size: 13.5px;
  color: var(--tl-gold);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(29,99,211,0.45);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.tl-auth-link:hover {
  color: var(--tl-gold-soft);
  text-decoration-color: var(--tl-gold-soft);
}

.tl-auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 18px;
  font-family: var(--tl-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(11,29,48,0.6);
}

.tl-auth-divider::before,
.tl-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(11,29,48,0.07);
}

.tl-auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(11,29,48,0.02);
  color: var(--tl-ink);
  font-family: var(--tl-sans);
  font-weight: 500;
  font-size: 14.5px;
  padding: 12px 16px;
  border: 1px solid rgba(11,29,48,0.12);
  border-radius: 6px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.tl-auth-google:hover {
  background: rgba(11,29,48,0.05);
  border-color: rgba(11,29,48,0.25);
  color: var(--tl-ink);
}

.tl-auth-google:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #f5f9fd, 0 0 0 4px rgba(29,99,211,0.85);
}

.tl-auth-google svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.tl-auth-footer {
  margin: 22px 0 0;
  text-align: center;
  font-family: var(--tl-sans);
  font-size: 13.5px;
  color: var(--tl-muted);
}

/* The a11y prose-link baseline in titratelab_tokens.css underlines
   .tl-auth-footer a (WCAG 1.4.1) — keep the underline, tune its color. */
.tl-auth-footer a {
  color: var(--tl-gold);
  font-family: var(--tl-sans);
  font-size: 13.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(29,99,211,0.35);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.tl-auth-footer a:hover {
  color: var(--tl-gold-soft);
  text-decoration-color: var(--tl-gold-soft);
}

.tl-auth-footer-sep {
  color: rgba(11,29,48,0.25);
  margin: 0 10px;
}

/* Legal consent line (signup) — quiet, but present and readable. */
.tl-auth-terms {
  margin: 18px 0 0;
  text-align: center;
  font-family: var(--tl-sans);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--tl-muted);
}

.tl-auth-terms a {
  color: rgba(11,29,48,0.85);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(11,29,48,0.35);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.tl-auth-terms a:hover {
  color: var(--tl-gold);
  text-decoration-color: rgba(29,99,211,0.5);
}

@media (max-width: 480px) {
  .tl-auth-card {
    margin: 24px 16px 48px;
    padding: 32px 22px 28px;
  }
  .tl-auth-card h1 { font-size: 25px; }
}
