/* Focused authentication is a variant of the common site shell and palette. */
body.auth-page{padding-bottom:0;min-height:100svh;display:flex;flex-direction:column}
.auth-page .site-header{position:static;padding-top:20px;transform:none}
html.header-hidden .auth-page .site-header{transform:none}
.auth-page .site-header .header-row{max-width:1440px;width:calc(100% - 64px);gap:16px}
.auth-page .site-header .header-navigation:has([data-theme-control][hidden]){display:flex}
.auth-page .site-header .header-navigation{display:flex;justify-content:space-between;padding:12px 24px}
.auth-back{display:flex;gap:16px;align-items:center;min-height:44px;color:var(--on-dark);font-size:20px;font-weight:600}
.auth-back span{font-size:28px;font-weight:400}
.auth-page .theme-toggle{order:0;flex:0 0 44px;width:44px;border:0;background:transparent;color:var(--on-dark)}
.auth-page .theme-thumb{background:transparent;transform:none;left:4px}
.auth-page .theme-icon{width:28px;height:28px}
.auth-page .theme-moon{opacity:1;transform:none}
.auth-page .theme-sun{opacity:0}
.auth-page .theme-toggle[aria-pressed=true] .theme-thumb{transform:none}
[data-theme="dark"] .auth-page .theme-moon{opacity:0}
[data-theme="dark"] .auth-page .theme-sun{opacity:1;transform:none}
.auth-main{flex:1;display:flex;flex-direction:column;align-items:center;padding:clamp(48px,12vh,120px) 16px 16px;min-height:0}
.auth-card{width:100%;max-width:616px;padding:56px 48px 36px;border:1px solid var(--line);border-radius:30px;background:var(--surface);box-shadow:var(--shadow-panel);overflow-wrap:anywhere}
.auth-card h1{font-size:clamp(26px,3vw,36px);line-height:1.2;text-align:center;letter-spacing:-.035em;margin:0 0 14px}
.auth-intro{font-size:18px;line-height:1.5;text-align:center;color:var(--muted);margin:0}
.auth-phone{white-space:nowrap}
.auth-form{display:grid;gap:28px;margin-top:40px}
.auth-field{display:grid;gap:10px;min-width:0}
.auth-field label{font-size:18px}
.auth-field input{width:100%;min-width:0;height:64px;padding:16px 20px;border:1px solid var(--control);border-radius:14px;background:var(--field-bg);color:var(--text);font:inherit;font-size:20px}
.auth-field input::placeholder{color:var(--muted);opacity:1}
.auth-field input:hover{border-color:var(--field-hover)}
.auth-field input:focus{border-color:var(--accent);outline:2px solid var(--accent);outline-offset:2px}
.auth-consent label{display:flex;align-items:center;gap:18px;min-height:48px;font-size:16px;line-height:1.5;cursor:pointer}
.auth-consent label span{max-width:300px}
.auth-consent input{flex:none;appearance:none;width:26px;height:26px;margin:0;border:1px solid var(--control);border-radius:6px;background:var(--surface);accent-color:var(--accent)}
.auth-card a,.auth-card .text-button,.auth-policy{text-decoration:underline;text-underline-offset:3px}
.auth-submit.button{width:100%;min-height:64px;border-radius:14px;font-size:20px;font-weight:650}
.auth-submit.button:disabled{background:var(--accent-soft);color:var(--muted);opacity:1;cursor:default}
.auth-guest{display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:18px;font-size:18px;text-align:center}
.auth-policy{display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:28px;color:var(--muted);text-align:center;font-size:15px}
.auth-footer{padding:16px 16px 28px;text-align:center;color:var(--muted);font-size:14px}
.auth-change{display:flex;justify-content:center;margin-top:0}
.auth-change .text-button{padding:8px 4px;font-size:17px;text-align:center}
.auth-code-form{margin-top:30px;gap:16px}
.auth-code-form #code-errors:empty{display:none}
.auth-resend{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:44px;margin:22px 0 16px;gap:10px;text-align:center}
.auth-countdown{color:var(--muted);font-size:16px;font-variant-numeric:tabular-nums}
.auth-countdown:empty{display:none}
.auth-resend .text-button{padding:8px 4px;text-align:center}
.auth-card .errorlist{list-style:none;padding:12px 16px;margin:0;border-radius:12px;background:var(--error-bg);color:var(--danger);font-size:14px;line-height:1.5}
.auth-field input[aria-invalid=true]{border-color:var(--danger)}
.otp-control{position:relative;min-width:0}
.otp-cells{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;pointer-events:none}
.otp-cells span{display:flex;align-items:center;justify-content:center;height:76px;border:1px solid var(--control);border-radius:12px;background:var(--field-bg);color:var(--text);font-size:30px;font-weight:600;position:relative}
.otp-enhanced input{position:absolute;inset:0;height:100%;z-index:1;opacity:0;cursor:text}
.otp-enhanced:focus-within .is-active{border:2px solid var(--accent);outline:2px solid var(--accent-soft);outline-offset:2px}
.otp-enhanced:focus-within .is-active:empty:after{content:'';height:30px;width:2px;background:var(--accent)}
.otp-enhanced:has([aria-invalid=true]) .otp-cells span{border-color:var(--danger)}
.account-captcha{display:contents}.account-captcha-check{position:absolute}.account-captcha-status{color:var(--muted);font-size:14px}
@media(max-width:767px){
 .auth-page .site-header{padding-top:12px}
 .auth-page .site-header .header-row{width:calc(100% - 24px);gap:8px}
 .auth-page .site-header .header-navigation{padding:6px 10px}
 .auth-back{gap:8px;font-size:16px}
 .auth-back span{font-size:24px}
 .auth-main{padding:var(--mobile-section-space) 12px 12px}
 .auth-card{padding:28px var(--mobile-panel-space) 20px;border-radius:24px}
 .auth-card h1{font-size:26px;letter-spacing:-.035em}
 .auth-intro{font-size:15px}
 .auth-form{margin-top:28px;gap:24px}
 .auth-field label{font-size:16px}
 .auth-field input{height:56px;font-size:18px;padding:14px}
 .auth-consent label{font-size:14px;gap:12px}
 .auth-consent input{width:24px;height:24px}
 .auth-submit.button{min-height:56px;font-size:18px}
 .auth-guest{font-size:16px;margin-top:12px}
 .auth-policy{margin-top:16px;font-size:13px}
 .auth-footer{padding-bottom:20px;font-size:12px}
 .auth-change .text-button{font-size:15px}
 .auth-code-form{margin-top:20px}
 .otp-cells{gap:6px}
 .otp-cells span{height:56px;border-radius:8px;font-size:24px}
 .auth-countdown{font-size:14px}
}
