/* The sign-in pages (spec 2026-10-07-auth-pages-landing-look-design.md §2). landing.css, linked first, supplies the
   tokens, fonts, the fixed bar and the .cta buttons; this file lays out the shell and restyles the forms. */
.auth-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - var(--bar-h)); }
.auth-pitch { padding: clamp(48px, 11vh, 120px) var(--gutter) 48px; border-right: 1px solid var(--rule); background: linear-gradient(180deg, var(--night), var(--frame)); }
.auth-wm { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 3.4vw, 48px); line-height: 1; letter-spacing: -0.01em; color: var(--brand); margin-bottom: 18px; }
.auth-tag { margin: 0 0 28px; color: var(--ink-2); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; }
.auth-ex { max-width: 340px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--rule); border-left: 3px solid var(--excess); }
.auth-ex-k { font-family: var(--f-display); font-weight: 600; font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; color: var(--mist); }
.auth-ex-v { font-family: var(--f-display); font-weight: 600; font-size: 34px; line-height: 1.25; color: var(--excess); font-variant-numeric: tabular-nums; }
.auth-ex-s { font-size: 13px; color: var(--mist); }
.auth-disc { max-width: 340px; margin: 10px 0 0; font-size: 13px; line-height: 1.5; font-style: italic; color: var(--mist); }
.auth-friend { max-width: 340px; margin: 24px 0 0; padding: 12px 16px; border: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }
.auth-friend b { font-weight: 600; color: var(--ink); }
.auth-card { justify-self: center; box-sizing: border-box; width: 100%; max-width: 520px; padding: clamp(36px, 7vh, 80px) var(--gutter) 48px; }

/* the page's heading and form */
.auth-card .login-header { margin-bottom: 22px; }
.auth-card h1 { margin: 0 0 8px; font-family: var(--f-display); font-weight: 600; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.auth-card .login-header p { margin: 0; font-size: 15px; color: var(--mist); }
.auth-card .form-group { margin-bottom: 16px; }
.auth-card .form-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-family: var(--f-display); font-weight: 600; font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; color: var(--mist); }
.auth-opt { font-family: var(--f-body); font-weight: 400; letter-spacing: 0.02em; text-transform: none; }
.auth-card .form-input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink); background: var(--frame); border: 1px solid var(--rule); border-radius: 0; }
.auth-card .form-input::placeholder { color: #64748b; }
.auth-card .form-input:focus { outline: none; border-color: var(--ink); }
.auth-card .form-input[readonly] { background: var(--panel); color: var(--ink-2); }
.auth-card .code-input { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 24px; letter-spacing: 0.4em; text-align: center; }
.auth-card .password-wrapper { position: relative; }
.auth-card .password-wrapper .form-input { padding-right: 44px; }
.auth-card .password-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; padding: 4px; background: none; border: 0; color: var(--mist); cursor: pointer; }
.auth-card .password-toggle:hover { color: var(--ink); }
.auth-card .password-toggle svg { width: 20px; height: 20px; }
.auth-card .cta { width: 100%; box-sizing: border-box; }
.auth-card .cta:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-card .btn-google { gap: 10px; }
.auth-card .btn-google svg { width: 18px; height: 18px; }
.auth-card .divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-family: var(--f-display); font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; color: var(--mist); }
.auth-card .divider::before, .auth-card .divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.auth-card .forgot-password-link { margin-top: 8px; text-align: right; font-size: 14px; }
.auth-card .forgot-password-link a, .auth-card .back-link { color: var(--mist); text-decoration: none; }
.auth-card .forgot-password-link a:hover, .auth-card .back-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.auth-card .back-link { display: inline-block; margin-bottom: 18px; font-size: 14px; }
.auth-foot, .auth-card .footer-link, .auth-card .help { margin: 22px 0 0; text-align: center; font-size: 15px; color: var(--mist); }
.auth-foot a, .auth-link, .auth-card .footer-link a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rule); }
.auth-hint { display: block; margin-top: 6px; font-size: 13px; color: var(--mist); }
.auth-row { display: flex; gap: 12px; }
.auth-row > .form-group { flex: 1 1 0; min-width: 0; }
.login-copyright { margin: 28px 0 0; text-align: center; font-size: 12px; color: var(--mist); }

/* alerts (the pages' own showAlert markup) */
.auth .alert { margin-bottom: 16px; padding: 12px 14px; font-size: 14px; border: 1px solid; border-left-width: 3px; }
.auth .alert-error { background: rgba(239, 68, 68, 0.12); border-color: #ef4444; color: #fecaca; }
.auth .alert-success { background: rgba(34, 197, 94, 0.12); border-color: var(--excess); color: #bbf7d0; }
.auth .alert-info { background: rgba(96, 165, 250, 0.12); border-color: #60a5fa; color: #bfdbfe; }
.auth .alert-warning { background: rgba(245, 158, 11, 0.12); border-color: #f59e0b; color: #fde68a; }

/* 2FA setup */
.auth-card .who, .auth-card .step, .auth-card .num-step-body { color: var(--ink-2); font-size: 15px; }
.auth-card .who { text-align: center; margin: 0 0 16px; }
.auth-card .who code, .auth-card .secret-block { font-family: "SF Mono", Menlo, Consolas, monospace; color: var(--ink); background: var(--frame); border: 1px solid var(--rule); }
.auth-card .who code { padding: 1px 6px; font-size: 0.85em; }
.auth-card :is(.who, .step, .num-step-body) strong { color: var(--ink); }
.auth-card .num-step { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; }
.auth-card .num { flex: 0 0 22px; height: 22px; margin-top: 2px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #ffffff; background: var(--brand); border-radius: 999px; }
.auth-card .num-step-body a { color: #a5b4fc; }
.auth-card .qr-box { display: flex; flex-direction: column; align-items: center; margin: 16px 0; padding: 16px; background: var(--panel); border: 1px solid var(--rule); }
.auth-card #qrcode { padding: 8px; background: #ffffff; line-height: 0; }
.auth-card #qrcode svg { display: block; width: 200px; height: 200px; }
.auth-card .secret-block { margin-top: 12px; padding: 8px; font-size: 14px; text-align: center; word-break: break-all; user-select: all; }

/* phones: one column, the panel above the form (spec §2) */
@media (max-width: 767.98px) {
  .auth-main { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-pitch { padding: 28px var(--gutter) 24px; border-right: 0; border-bottom: 1px solid var(--rule); background: none; }
  .auth-wm { font-size: 30px; margin-bottom: 10px; }
  .auth-tag { font-size: 17px; margin-bottom: 16px; }
  .auth-ex, .auth-disc, .auth-friend { max-width: none; }
  .auth-ex { padding: 10px 14px; }
  .auth-ex-v { font-size: 26px; }
  .auth-ex-s { display: none; }
  .auth-card { max-width: none; padding: 24px var(--gutter) 40px; }
  .auth-row { flex-direction: column; gap: 0; }
}
