/* The public sign-in screen: a quiet, tactile key fob and one clear action. */
:root{--auth-bg:#111315;--auth-ink:#f0f1f2;--auth-muted:#9b9fa5;--auth-subtle:#858b93;--auth-field:#1b1e21;--auth-border:#34383e;--auth-mint:#91f1d6}
:root[data-theme=light]{--auth-bg:#f7f8f9;--auth-ink:#191d22;--auth-muted:#59626e;--auth-subtle:#606a76;--auth-field:#fff;--auth-border:#ccd2d9;--auth-mint:#91f1d6}
:root:has(#auth-shell:not([hidden])),body:has(#auth-shell:not([hidden])){background:var(--auth-bg)}
body:has(#auth-shell:not([hidden]))::before{display:none}
#auth-shell{--ink:var(--auth-ink);--muted:var(--auth-muted);position:relative;z-index:1;width:min(480px,100%);min-height:100svh;padding:calc(30px + env(safe-area-inset-top,0px)) 34px max(30px,env(safe-area-inset-bottom));display:flex;flex-direction:column;justify-content:flex-start;margin:0 auto;color:var(--auth-ink)}
#auth-shell .auth-brand{display:inline-flex;align-items:center;align-self:flex-start;gap:11px;text-decoration:none;color:var(--auth-ink);font-family:inherit;line-height:1}
#auth-shell .auth-logo{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:11px;background:var(--auth-mint);color:#102421;font-family:inherit;font-size:22px;font-weight:700;letter-spacing:0}
#auth-shell .auth-wordmark{color:var(--auth-ink);font-family:inherit;font-size:18px;font-weight:600;letter-spacing:.6px}
#auth-shell .auth-fob-art{display:flex;justify-content:center;width:100%;margin:20px auto 4px;pointer-events:none}
#auth-shell .auth-fob{display:block;width:clamp(180px,55vw,240px);height:auto;overflow:visible;flex:none}
#auth-shell h1{color:var(--auth-ink);font-size:clamp(30px,7.9vw,38px);font-weight:650;letter-spacing:-.9px;line-height:1.12;text-align:center;margin:8px 0 12px}
#auth-shell .auth-intro{max-width:390px;align-self:center;color:var(--auth-muted);font-size:18px;line-height:1.5;text-align:center;margin:0}
#auth-shell #auth-loading{color:var(--auth-muted);text-align:center;font-size:15px;margin:20px 0}
#auth-shell form{margin:6px 0 0;width:100%}
#auth-shell label{display:block;color:var(--auth-ink);font-family:inherit;font-size:16px;font-weight:450;line-height:1.5;margin:0 0 10px;letter-spacing:0}
#auth-shell input{width:100%;min-height:64px;border:1px solid var(--auth-border);border-radius:36px;background:var(--auth-field);color:var(--auth-ink);font-family:inherit;font-size:18px;padding:17px 22px;box-shadow:inset 0 1px #ffffff02}
#auth-shell input::placeholder{color:var(--auth-subtle);opacity:1}
#auth-shell input:focus{border-color:#76cfb9;box-shadow:0 0 0 3px #76cfb91f}
#auth-shell :is(input,button,a,summary):focus-visible{outline:2px solid var(--signal);outline-offset:4px}
#auth-shell .primary{display:flex;justify-content:center;align-items:center;width:100%;min-height:64px;margin:12px 0 0;padding:17px 20px;border:1px solid transparent;border-radius:36px;background:var(--auth-mint);color:#102823;font-family:inherit;font-size:18px;font-weight:650;line-height:1.4;box-shadow:none}
#auth-shell .primary:active:not(:disabled){background:#a9f8e2;transform:translateY(1px)}
#auth-shell .primary:disabled{background:var(--auth-mint);color:#102823;opacity:.5;box-shadow:none}
#auth-shell .auth-hint{color:var(--auth-muted);font-size:15px;line-height:1.55;text-align:center;margin:13px 0 0}
#auth-shell .auth-legal{color:var(--auth-subtle);font-size:13px;line-height:1.65;text-align:center;margin:24px 0 0}
#auth-shell .auth-privacy{color:var(--auth-muted);font-size:14px;line-height:1.6;margin:10px 0 0}
#auth-shell .auth-privacy summary{width:fit-content;margin:0 auto;color:var(--auth-muted);cursor:pointer}
#auth-shell .auth-privacy p{color:var(--auth-muted);font-size:14px;line-height:1.7;margin:14px 0 0}
#auth-shell .auth-code-actions{margin:10px 0 14px}
#auth-shell .auth-code-actions .text-button{font-size:14px;min-height:44px;color:var(--auth-ink)}
#auth-shell #auth-code-step p{color:var(--auth-muted);font-size:16px;line-height:1.6;margin:8px 0 18px;overflow-wrap:anywhere}
#auth-shell #auth-code{font-size:24px;letter-spacing:6px}
#auth-shell .form-error{font-size:14px;line-height:1.55;margin:12px 0;border-radius:14px}
#auth-shell[data-step=code] .auth-fob-art{margin-top:8px;margin-bottom:0}
#auth-shell[data-step=code] .auth-fob{width:145px}
#auth-shell[data-step=code] .auth-intro{display:none}
#auth-shell[data-step=code] form{margin-top:14px}
@media(max-width:400px){
 #auth-shell{padding:calc(26px + env(safe-area-inset-top,0px)) 26px max(26px,env(safe-area-inset-bottom))}
 #auth-shell .auth-intro{font-size:16px}
 #auth-shell input,#auth-shell .primary{min-height:58px;font-size:17px}
 #auth-shell .auth-hint{font-size:14px}
}
@media(max-height:800px){
 #auth-shell .auth-fob-art{margin-top:8px;margin-bottom:0}
 #auth-shell .auth-fob{width:clamp(145px,45vw,185px)}
 #auth-shell h1{font-size:clamp(28px,7.8vw,34px)}
 #auth-shell .auth-legal{margin-top:22px}
}
@media(max-height:600px){
 #auth-shell .auth-fob{width:115px}
 #auth-shell[data-step=code] .auth-fob-art{display:none}
}
