* { box-sizing:border-box; }
[hidden] { display:none !important; }
:root { --auth-canvas:#f1f2f4; --auth-text:#17181c; --auth-muted:#666970; --auth-field:rgba(255,255,255,.9); --auth-border:#c9cbd1; --auth-button:linear-gradient(180deg,#fff,#e7e8eb); --auth-button-edge:#c2c4ca; --auth-fold-light:#d1d3d8; --auth-fold-mid:#e4e5e8; --auth-fold-dark:#f1f2f4; }
:root[data-theme="dark"] { --auth-canvas:#080809; --auth-text:#f5f5f6; --auth-muted:#a1a1a8; --auth-field:rgba(32,32,34,.88); --auth-border:#39393d; --auth-button:linear-gradient(180deg,#29292c,#1c1c1e); --auth-button-edge:#050506; --auth-fold-light:#55565b; --auth-fold-mid:#242427; --auth-fold-dark:#0b0b0d; }
body { position:relative; isolation:isolate; overflow-x:hidden; margin:0; min-height:100vh; min-height:100dvh; background:var(--auth-canvas); color:var(--auth-text); font:400 16px/1.5 var(--font-family); -webkit-font-smoothing:antialiased; }
/* Generated tonal background, kept static so it does not compete with analysis. */
body::before { content:''; position:fixed; inset:0; z-index:-1; pointer-events:none; background:url('/assets/auth/soft-gradient.webp') center/cover no-repeat; opacity:.08; mix-blend-mode:multiply; }
:root[data-theme="dark"] body::before { opacity:1; mix-blend-mode:normal; }
a { color:inherit; text-underline-offset:4px; }
:is(a,button,input):focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.auth-header { position:absolute; top:0; left:0; padding:32px 40px; }
.auth-header a { display:inline-flex; align-items:center; gap:10px; color:var(--auth-muted); text-decoration:none; font-weight:600; }
.auth-header a:hover { color:var(--auth-text); }
.auth-header span { font:400 23px/1 var(--font-family); }
.auth-main { width:min(100% - 40px,400px); margin:0 auto; padding:72px 0 56px; }
.auth-brand { display:flex; align-items:center; justify-content:center; width:64px; height:64px; margin:0 auto 24px; border:1px solid var(--auth-border); border-radius:18px; background:var(--auth-canvas); box-shadow:inset 0 1px 0 rgba(255,255,255,.04); text-decoration:none; }
.auth-brand img { width:38px; height:44px; object-fit:contain; }
h1 { margin:0 0 14px; font-size:28px; line-height:1.2; font-weight:700; letter-spacing:-.035em; text-align:center; }
.auth-switch { margin:0 0 32px; text-align:center; color:var(--auth-muted); }
.auth-switch a { color:var(--auth-text); text-decoration:none; font-weight:600; }
.auth-switch a:hover { text-decoration:underline; }
.auth-field { display:grid; gap:8px; margin-bottom:18px; }
label { color:var(--auth-text); font-size:13px; font-weight:500; }
input { width:100%; min-width:0; height:46px; padding:10px 12px; border:1px solid var(--auth-border); border-radius:6px; background:var(--auth-field); color:var(--auth-text); box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 0 0 1px rgba(127,127,127,.05); font:inherit; }
input:hover { border-color:var(--text-faint); }
.auth-hint { margin:0; color:var(--auth-muted); font-size:13px; }
.auth-forgot { display:block; width:max-content; margin:-6px 0 24px auto; color:var(--auth-muted); font-size:13px; }
.auth-primary,.auth-secondary { display:flex; align-items:center; justify-content:center; gap:12px; width:100%; min-height:46px; padding:12px 18px; border:1px solid var(--auth-border); border-radius:6px; color:var(--auth-text); background:var(--auth-button); box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 2px 0 var(--auth-button-edge); font:600 14px/1.4 var(--font-family); cursor:pointer; text-decoration:none; }
.auth-primary:hover:not(:disabled),.auth-secondary:hover { border-color:var(--text-faint); filter:brightness(1.08); }
.auth-primary:active:not(:disabled),.auth-secondary:active { transform:translateY(2px); box-shadow:inset 0 1px 0 rgba(255,255,255,.04); }
.auth-primary:disabled { opacity:.55; cursor:wait; box-shadow:none; }
.auth-secondary svg { width:21px; height:21px; }

.auth-divider { display:flex; align-items:center; gap:20px; margin:28px 0 30px; color:var(--auth-muted); font-size:14px; }
.auth-divider::before,.auth-divider::after { content:''; height:1px; flex:1; background:var(--auth-border); opacity:.7; }
.auth-message { margin:22px 0 0; font-size:14px; overflow-wrap:anywhere; }
.auth-message:empty { display:none; }
.auth-message[data-error="true"] { color:#b91c1c; }
:root[data-theme="dark"] .auth-message[data-error="true"] { color:#fca5a5; }
#auth-recovery-note { margin-top:24px; }
@media(min-width:1600px) { .auth-main { width:600px; padding-top:54px; } h1 { font-size:36px; } }
@media(max-width:700px) { .auth-header { position:relative; padding:22px 24px; } .auth-main { padding-top:8px; } :root[data-theme="dark"] body::before { opacity:.65; } h1 { font-size:29px; } }

.auth-primary { background:var(--action-face); color:#fff; border-color:#2357bb; box-shadow:var(--action-shadow); }
.auth-primary:active:not(:disabled) { box-shadow:var(--action-pressed-shadow); }
.auth-secondary { background:var(--auth-field); box-shadow:none; }
.auth-message { font-size:13px; }
.auth-brand { width:52px; height:52px; border-radius:12px; }
.auth-brand img { width:30px; height:36px; }
@media(max-width:600px) { .auth-main { padding-top:88px; } .auth-header { padding:20px; } }

.auth-label-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
#auth-visibility { min-height:28px; padding:2px 4px; background:transparent; color:var(--auth-muted); border:0; font:500 12px var(--font-family); cursor:pointer; }
#auth-visibility:hover { color:var(--auth-text); }
