* { box-sizing:border-box; }
html { color-scheme:light; }
body.auth-page { margin:0; min-height:100vh; min-height:100dvh; display:flex; flex-direction:column; background:var(--app-background); color:var(--app-text); font-family:Arial,Helvetica,sans-serif; font-size:16px; line-height:1.5; }
.auth-page main { flex:1; width:100%; }
.auth-brand { padding:32px 20px 0; text-align:center; }
.auth-brand a { display:inline-flex; border-radius:4px; }
.auth-brand img { display:block; width:160px; max-width:60vw; height:auto; }
.auth-back-nav { max-width:500px; margin:24px auto 0; padding:0 20px; }
.auth-back { display:inline-flex; align-items:center; gap:8px; min-height:44px; color:var(--app-accent); text-decoration:none; font-size:14px; }
.auth-back svg { width:20px; height:20px; }
.auth-back:hover { color:var(--app-accent-hover); text-decoration:underline; }
.auth-footer { padding:8px 20px 24px; text-align:center; font-size:13px; }
.auth-footer a { color:var(--app-text-muted); }
.auth-brand a:focus-visible,.auth-back:focus-visible,.auth-footer a:focus-visible { outline:2px solid var(--app-accent); outline-offset:4px; }
.auth-back-nav + .auth-section { padding-top:12px; }
.auth-section { padding:48px 20px 56px; background:var(--app-background); color:var(--app-text); }
.auth-card { max-width:460px; margin:0 auto; padding:32px; border:1px solid var(--app-border); border-radius:22px; background:var(--app-surface); box-shadow:0 12px 40px rgb(41 46 41 / .06); }
.auth-card h1 { margin:0 0 12px; font-size:28px; line-height:1.2; }
.auth-card p { line-height:1.6; }
.auth-intro { margin:0 0 26px; color:var(--app-text-muted); }
.auth-card label:not(.auth-consent) { display:block; margin:18px 0 7px; font-size:14px; font-weight:600; }
.auth-card input:not([type=checkbox]) { width:100%; min-width:0; min-height:48px; padding:12px; background:var(--app-surface); border:1px solid var(--app-border); border-radius:10px; color:var(--app-text); font:inherit; }
.auth-card input::placeholder { color:var(--app-text-muted); }
.auth-card input:focus-visible,.auth-card button:focus-visible,.auth-card a:focus-visible { outline:2px solid var(--app-accent); outline-offset:3px; }
.auth-password { position:relative; }
.auth-password input { padding-right:86px!important; }
.auth-password button { position:absolute; right:8px; top:5px; min-height:38px; border:0; background:transparent; color:var(--app-accent); font:inherit; font-size:13px; cursor:pointer; }
.auth-primary,.auth-secondary { display:flex; justify-content:center; align-items:center; gap:8px; width:100%; min-height:48px; padding:12px 16px; margin-top:20px; border:1px solid transparent; border-radius:10px; font:inherit; font-weight:600; line-height:1.4; text-align:center; text-decoration:none; cursor:pointer; }
.auth-card .auth-primary { background:var(--app-accent); color:var(--app-on-accent); }
.auth-card .auth-primary:hover { background:var(--app-accent-hover); }
.auth-card .auth-secondary { background:var(--app-surface-muted); color:var(--app-text); border-color:var(--app-border); }
.auth-card .auth-secondary:hover { background:color-mix(in srgb,var(--app-surface-muted),var(--app-accent) 8%); }
.auth-text { display:block; width:100%; margin:16px 0 0; padding:3px; border:0; background:transparent; color:var(--app-accent); font:inherit; font-size:14px; text-align:center; text-decoration:none; cursor:pointer; }
.auth-card a:not(.auth-primary):not(.auth-secondary) { color:var(--app-accent); }
.auth-text:hover,.auth-bottom a:hover { text-decoration:underline; }
.auth-card .auth-help { color:var(--app-text-muted); font-size:13px; margin:10px 0; }
.auth-consent { display:flex; gap:10px; margin:20px 0; font-size:13px; line-height:1.6; }
.auth-consent input { flex:0 0 18px; width:18px; height:18px; margin:3px 0 0; accent-color:var(--app-accent); }
.auth-bottom { margin:24px 0 0; font-size:14px; text-align:center; }
.auth-status:empty { display:none; }
.auth-card .auth-status { margin:20px 0 0; padding:12px; font-size:14px; border-radius:10px; background:var(--app-accent-soft); overflow-wrap:anywhere; }
.auth-card .auth-status[data-error=true] { color:var(--app-danger); background:color-mix(in srgb,var(--app-surface),var(--app-danger) 8%); }
.auth-card button:disabled { opacity:.55; cursor:wait; }
.auth-card [hidden] { display:none!important; }
.auth-code { letter-spacing:.35em; font-size:24px!important; }
@media(max-width:540px) { .auth-section {padding:24px 14px 36px;} .auth-card {padding:24px 20px;} .auth-card h1 {font-size:25px;} }
