/* Auth surface — signup, the code step, login, forgot-password. One sheet,
   one centred card, the site's light theme and ultramarine accent. Replaces
   the per-page inline stylesheets and auth-enterprise.css (2026-09-02). */
:root { --auth-ink: #1b2838; --auth-dim: #455568; --auth-grey: #5d6b7c; --auth-line: #dfe5ed; --accent: #2733d9; --accent-ink: #1f2abf; }
html { background: #f5f7f9; }
body { margin: 0; background: #f5f7f9; color: var(--auth-ink); font-family: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
main.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px 48px; box-sizing: border-box;
  background: #f5f7f9; }
.auth-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--auth-ink); text-decoration: none; font-weight: 700; font-size: 1rem; margin-bottom: 22px; }
.auth-brand .logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--auth-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.auth-card { width: min(100%, 440px); background: #fff; border: 1px solid var(--auth-line); border-radius: 16px; padding: 28px; box-sizing: border-box;
  box-shadow: 0 2px 4px #1b283804, 0 16px 48px -24px #1b283829; }
.auth-card * { box-sizing: border-box; }
.form-title { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 6px; color: var(--auth-ink); }
.form-subtitle { font-size: 0.9rem; color: var(--auth-dim); line-height: 1.55; margin: 0 0 20px; }
.form-subtitle a, .form-subtitle strong, #display-email { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.field { margin-bottom: 14px; }
.field-label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--auth-ink); margin-bottom: 6px; }
.field-label-sq, .pw-breach-sq, .caps-hint-sq { display: none; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; }
.field-label-row .field-label { margin-bottom: 6px; }
.forgot-link { font-size: 0.8125rem; color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.form-input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid rgba(10,20,10,0.18); border-radius: 10px; background: #fff; color: var(--auth-ink);
  font-family: inherit; font-size: 1rem; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.form-input::placeholder { color: #9aa09a; }
.form-input:hover { border-color: rgba(10,20,10,0.3); }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(39,51,217,0.15); }
.form-input.input-err { border-color: #b02c24; }
.pw-wrap { position: relative; }
.pw-wrap .form-input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 1px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent; color: var(--auth-dim); cursor: pointer; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.pw-toggle:hover { color: var(--auth-ink); background: rgba(10,20,10,0.05); }
.pw-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pw-meter { margin-top: 8px; }
.pw-meter { min-height: 0; }
.pw-meter-track { opacity: 0; transition: opacity 0.2s; height: 4px; border-radius: 2px; background: rgba(10,20,10,0.08); overflow: hidden; }
.pw-meter-fill { height: 100%; width: 0; border-radius: 2px; background: #b02c24; transition: width 0.25s, background 0.25s; }
.pw-meter:has(.pw-meter-fill.s1, .pw-meter-fill.s2, .pw-meter-fill.s3, .pw-meter-fill.s4) .pw-meter-track { opacity: 1; }
.pw-meter-fill.s1 { width: 25%; background: #b02c24; }
.pw-meter-fill.s2 { width: 50%; background: #b7791f; }
.pw-meter-fill.s3 { width: 75%; background: var(--accent); }
.pw-meter-fill.s4 { width: 100%; background: #15803d; }
.pw-meter-label { display: flex; justify-content: space-between; gap: 10px; font-size: 0.75rem; color: var(--auth-grey); margin-top: 6px; }
.pw-meter-verdict { font-weight: 600; }
.pw-meter-verdict.s1 { color: #b02c24; } .pw-meter-verdict.s2 { color: #b7791f; } .pw-meter-verdict.s3 { color: var(--accent-ink); } .pw-meter-verdict.s4 { color: #15803d; }
.pw-breach { display: none; font-size: 0.8125rem; color: #b02c24; margin: 8px 0 0; line-height: 1.5; }
.pw-breach.on { display: block; }
.password-requirements { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.caps-hint { display: none; font-size: 0.75rem; color: #9a6b12; margin: 6px 0 0; }
.caps-hint.on { display: block; }
.error-msg { display: none; font-size: 0.8125rem; font-weight: 600; color: #b02c24; margin: 0 0 12px; line-height: 1.5; }
.error-msg.visible { display: block; }
.btn-primary { width: 100%; height: 48px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-family: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.15s, transform 0.05s; }
.btn-primary:hover:not(:disabled) { background: var(--accent-ink); }
.btn-primary:disabled { opacity: 0.7; cursor: default; }
.btn-spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.45); border-top-color: #fff; border-radius: 50%; animation: authSpin 0.7s linear infinite; }
@keyframes authSpin { to { transform: rotate(360deg); } }
.consent-note { font-size: 0.75rem; color: var(--auth-grey); line-height: 1.55; margin: 12px 0 0; text-align: center; }
.consent-note a { color: var(--auth-dim); text-decoration: underline; text-underline-offset: 2px; }
.consent-note a:hover { color: var(--accent-ink); }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--auth-grey); font-size: 0.75rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: rgba(10,20,10,0.1); }
.google-btn-wrap { margin: 0 0 10px; }
.google-custom-btn { width: 100%; height: 46px; border: 1px solid rgba(10,20,10,0.18); border-radius: 10px; background: #fff; color: var(--auth-ink); font-family: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: border-color 0.15s, background 0.15s; }
.google-custom-btn svg { width: 18px; height: 18px; flex: none; }
.google-custom-btn:hover { border-color: rgba(10,20,10,0.4); background: #fafbf9; }
.auth-providers-label { margin: 0 0 8px; color: var(--auth-dim); font-size: .75rem; }
.auth-providers { display: flex; flex-direction: column; gap: 8px; }
.auth-providers-secondary { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-providers .google-btn-wrap { flex: 1 1 90px; min-width: 0; margin: 0; }
.auth-providers > [data-auth-provider="google"] { flex: none; }
.auth-providers .google-custom-btn { height: 44px; padding: 0 8px; gap: 7px; font-size: .8125rem; }
.auth-providers [data-auth-provider="google"] .google-custom-btn { height: 46px; font-size: .9rem; }
.auth-providers [hidden] { display: none; }
.auth-card a:focus-visible, .auth-card button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.auth-recovery { font-size: .875rem; line-height: 1.6; color: var(--auth-dim); }
.auth-recovery-actions { display: grid; gap: 12px; margin-top: 18px; }
.auth-recovery-actions a { display: flex; justify-content: center; align-items: center; min-height: 44px; color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.form-alt-link { text-align: center; font-size: 0.875rem; color: var(--auth-dim); margin: 18px 0 0; }
.form-alt-link a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.otp-cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp-cell { width: 100%; height: 58px; border: 1px solid rgba(10,20,10,0.18); border-radius: 10px; background: #fff; color: var(--auth-ink);
  font-family: 'JetBrains Mono', monospace; font-size: 26px; font-weight: 600; text-align: center; padding: 0; outline: none; caret-color: var(--accent); transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.otp-cell.filled { border-color: rgba(10,20,10,0.35); }
.otp-cell:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(39,51,217,0.15); }
.otp-cell.input-err { border-color: #b02c24; }
.otp-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; padding: 0; border: 0; }
.form-input.otp-input { font-family: 'JetBrains Mono', monospace; font-size: 26px; text-align: center; letter-spacing: 0.3em; }
@media (max-width: 380px) { .otp-cells { gap: 6px; } .otp-cell { height: 52px; font-size: 22px; } }
.resend-section { text-align: center; margin-top: 16px; }
.resend-label { font-size: 0.8125rem; color: var(--auth-dim); margin: 0 0 6px; }
.resend-btn { border: 0; background: transparent; font-family: inherit; font-size: 0.875rem; font-weight: 600; color: var(--accent-ink); cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.resend-btn:disabled { color: #9aa09a; cursor: default; }
.resend-row { font-size: 0.8125rem; color: var(--auth-dim); line-height: 1.6; margin-top: 14px; text-align: center; }
.resend-row a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.resend-row a.cooling { color: #9aa09a; pointer-events: none; }
.divider { height: 1px; background: rgba(10,20,10,0.08); margin: 18px 0; }
.back-link { display: inline-block; font-size: 0.8125rem; color: var(--auth-dim); text-decoration: none; }
.back-link:hover { color: var(--accent-ink); }
.step-hidden { display: none; }
.step-enter { animation: authIn 0.25s ease-out; }
@keyframes authIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.auth-foot { font-size: 0.75rem; color: var(--auth-grey); text-align: center; margin: 18px 0 0; line-height: 1.6; }
.auth-foot a { color: var(--auth-dim); text-decoration: none; }
.auth-foot a:hover { color: var(--accent-ink); }
.skip-link:focus { transform: translateY(48px); }
@media (max-width: 480px) { main.auth { padding: 22px 12px 28px; justify-content: flex-start; } .auth-brand { margin-bottom: 18px; } .auth-card { padding: 24px 18px 22px; border-radius: 14px; } .form-title { font-size: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { .step-enter, .btn-spinner { animation: none; } }

/* ── Paper (2026-09-23): sign-in and sign-up on the site's paper and serif ── */
@font-face { font-family:'Newsreader'; font-style:normal; font-weight:300 600; font-display:swap; src:url(/assets/fonts/newsreader-var-latin-ext.woff2) format('woff2'); unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Newsreader'; font-style:normal; font-weight:300 600; font-display:swap; src:url(/assets/fonts/newsreader-var-latin.woff2) format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root { --auth-ink:#15161a; --auth-dim:#4a4a45; --auth-grey:#64625c; --auth-line:#e4e1d8; }
html, body, main.auth { background:#f9f8f4; }
.auth-brand .logo-mark { background:#15161a; }
.form-title { font-family:'Newsreader','Iowan Old Style',Georgia,serif; font-weight:400; font-size:1.9rem; letter-spacing:-.02em; font-optical-sizing:none; font-variation-settings:'opsz' 40; }
