/* Sign-in / create-account screen restyled to match the landing page: white, centred, pill buttons. */
#authGate{
  --paper:#fff;--surface:#fff;--ink:#16181d;--brand:#16181d;--muted:#6b7280;--faint:#9aa0aa;--line:#e3e3e6;--line-soft:#ececee;--ok:#17835a;
  color-scheme:light;color:var(--ink);background:#fff;font-family:'Schibsted Grotesk','Segoe UI',system-ui,sans-serif;
  display:flex;overflow:auto;padding:84px 16px 48px;
}
/* faint ripples like the landing page */
#authGate::before,#authGate::after{content:"";position:fixed;left:50%;top:50%;border-radius:50%;border:1px solid rgba(60,90,160,.09);translate:-50% -50%;pointer-events:none;animation:authRipple 9s ease-in-out infinite}
#authGate::before{width:700px;height:700px}
#authGate::after{width:1060px;height:1060px;animation-delay:-4s}
@keyframes authRipple{50%{border-color:rgba(60,90,160,.16);scale:1.03}}

/* left showcase collapses to just the wordmark in the top-left corner */
#authGate .auth-showcase{position:fixed;left:28px;top:24px;z-index:3;display:block;padding:0;background:none;overflow:visible}
#authGate .auth-showcase>*:not(.auth-brand){display:none}
#authGate .auth-showcase::before,#authGate .auth-showcase::after{display:none}
#authGate .auth-showcase .auth-brand{color:var(--ink);font-size:21px;font-weight:700;letter-spacing:-.03em;gap:10px}
#authGate .auth-showcase .auth-brand b{color:#2f8cff;font-weight:700}
#authGate .brand-mark{width:30px;height:30px}

#authGate .auth-panel{position:relative;z-index:2;display:block;margin:auto;padding:0;background:none;width:min(100%,470px)}
#authGate .auth-card{width:100%;padding:0;background:none;border:0;border-radius:0;box-shadow:none;text-align:center}
#authGate .auth-card h1{font-size:clamp(30px,3.2vw,40px);font-weight:500;letter-spacing:-.035em;line-height:1.14}
#authGate .auth-card>p{margin:10px 0 26px;font-size:16px;color:var(--muted)}
#authGate .auth-label{text-align:left;margin:16px 4px 7px;font-size:13.5px;font-weight:600}
#authGate .auth-card .auth-field{height:56px;padding-top:0;padding-bottom:0;border:1px solid transparent;border-radius:999px;background-color:#ececee;color:var(--ink);font:500 16px/1 'Schibsted Grotesk',system-ui,sans-serif;padding-left:50px;background-position:19px center;transition:background-color .15s,border-color .15s,box-shadow .15s}
#authGate .auth-card .auth-field::placeholder{color:#8b919c}
#authGate .auth-card .auth-field:focus{background-color:#fff;border-color:#2f8cff;box-shadow:0 0 0 4px rgba(47,140,255,.15);outline:0}
#authGate .auth-pw .auth-field{padding-right:52px}
#authGate .pw-eye{right:10px}
#authGate .auth-card .auth-submit{width:100%;height:58px;min-height:58px;margin-top:24px!important;border-radius:999px;border:0;background:#232528;color:#fff;font:600 17px/1 'Schibsted Grotesk',system-ui,sans-serif;box-shadow:none}
#authGate .auth-card .auth-submit:hover:not(:disabled){background:#000;transform:translateY(-1px);box-shadow:0 12px 26px rgba(0,0,0,.18)}
#authGate .auth-or{color:#9aa0aa}
#authGate #googleAuthButton{height:58px;min-height:58px;border:0!important;border-radius:999px!important;background:#ececee!important;color:var(--ink)!important;font:600 17px/1 'Schibsted Grotesk',system-ui,sans-serif;transition:background .15s,transform .15s}
#authGate #googleAuthButton:hover:not(:disabled){background:#e3e3e6!important;box-shadow:none!important;transform:translateY(-1px)}
#authGate .auth-tabs{background:#ececee;border-radius:999px;padding:4px;margin-bottom:28px}
#authGate .auth-card .auth-tabs button{border-radius:999px;padding:12px;color:#6b7280;font-size:15px}
#authGate .auth-card .auth-tabs button.on,#authGate .auth-card .auth-tabs button.on:hover:not(:disabled){background:#fff;color:var(--ink);box-shadow:0 2px 8px rgba(20,33,46,.12)}
#authGate .auth-card .auth-tabs button:not(.on):hover:not(:disabled){background:rgba(255,255,255,.6);color:var(--ink)}
#authGate .auth-note{text-align:center;color:#b3261e}
#authGate .auth-foot{color:var(--faint)}
#authGate .pw-meter,#authGate .pw-rules{text-align:left}

/* In create-account-only mode the small switch link is the way back to Sign in */
#authGate.signup-only #authModeToggle{display:block!important;margin:16px auto 0!important;padding:6px 10px;color:#6b7280!important;font:500 16px/1.2 'Schibsted Grotesk',system-ui,sans-serif!important;text-decoration:underline;text-underline-offset:3px}
#authGate.signup-only #authModeToggle:hover{color:var(--ink)!important}

@media (max-width:640px){#authGate{padding-top:76px}#authGate .auth-showcase{left:18px;top:18px}#authGate::before,#authGate::after{display:none}}
@media (prefers-reduced-motion:reduce){#authGate::before,#authGate::after{animation:none}}
