/* Sign-in / sign-up: light form card on a dark metal stage; orange is a small accent only. */
body:has(> #root > .auth-stage) { background:#030304; }
.auth-stage { --auth-ink:#151719; --auth-muted:#76797c; --auth-accent:#e8692c; --auth-accent-text:#b84d18; display:grid; place-items:center; min-height:100svh; padding:clamp(14px,3vw,40px); background:radial-gradient(ellipse at 70% 0%,#1c1e20 0,#0a0b0c 45%,#030304 100%); font-family:Manrope,Arial,sans-serif; -webkit-font-smoothing:antialiased; }
.email-auth { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); width:min(1180px,100%); min-height:min(760px,calc(100svh - 2*clamp(14px,3vw,40px))); padding:12px; border-radius:28px; background:#f7f7f4; color:var(--auth-ink); font-size:14px; box-shadow:0 40px 120px #000c,inset 0 1px 0 #fff; }
.email-auth * { box-sizing:border-box; }
.email-auth a { color:inherit; text-decoration:none; }
.email-auth button,.email-auth input { font:inherit; }
.email-auth button { cursor:pointer; }
.email-auth h1,.email-auth h2,.email-auth p { margin:0; }
.email-auth :where(a,button,input):focus-visible { outline:2px solid var(--auth-accent); outline-offset:3px; }
/* Left: metal head on graphite with a warm glow. */
.auth-visual { position:relative; isolation:isolate; overflow:hidden; display:grid; place-items:center; min-width:0; padding:30px; border-radius:20px; color:#f1f1ed; background:#080808; }
/* Left panel: only the orange UMOos mark in the centre (no head, no captions). */
.auth-logo { width:clamp(48px,9%,72px); height:auto; fill:#ff4f12; }
.auth-visual-lines { position:absolute; inset:0; z-index:-1; background:repeating-linear-gradient(90deg,#ffffff06 0,#ffffff06 1px,transparent 1px,transparent 56px); }
/* Right: the form. */
.auth-panel { display:flex; flex-direction:column; min-width:0; padding:22px 34px 18px 46px; }
.auth-panel-top { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.auth-panel-brand { display:flex; flex-direction:column; font-size:13px; font-weight:500; letter-spacing:-.02em; }
.auth-panel-brand small { font-size:11px; font-weight:400; color:var(--auth-muted); }
.auth-close { display:grid; place-items:center; width:42px; height:42px; border:1px solid #d3d3ce; border-radius:50%; background:none; color:#333; font-size:22px!important; line-height:1; flex-shrink:0; }
.auth-close:hover { border-color:var(--auth-ink); }
.auth-panel-content { width:100%; max-width:400px; margin:auto 0; padding:28px 0; }
.auth-eyebrow { display:flex; justify-content:space-between; gap:18px; margin-bottom:16px!important; color:var(--auth-muted); font-size:10px; letter-spacing:.08em; text-transform:uppercase; }
.auth-panel h1 { font-size:clamp(34px,3.2vw,50px); font-weight:400; line-height:1.04; letter-spacing:-.06em; }
.auth-description { margin-top:16px!important; font-size:13px; line-height:1.6; color:var(--auth-muted); overflow-wrap:anywhere; }
.auth-description strong { font-weight:500; color:var(--auth-ink); }
.email-auth-form { margin-top:24px; padding-top:22px; border-top:1px solid #e1e1dc; }
.auth-field { display:flex; flex-direction:column; gap:8px; margin-bottom:16px; font-size:12px; color:#55595e; }
.auth-field input { display:block; width:100%; min-width:0; height:52px; padding:14px 18px; border:1px solid #d9d9d4; border-radius:14px; background:#fff; color:var(--auth-ink); font-size:14px; transition:border-color .2s,box-shadow .2s; }
.auth-field input::placeholder { color:#a2a5a0; }
.auth-field input:focus { outline:none; border-color:var(--auth-accent); box-shadow:0 0 0 4px #e8692c26; }
.auth-field input.auth-code { height:64px; padding-left:22px; font-size:26px; letter-spacing:.38em; }
.auth-consents { display:grid; gap:10px; margin:2px 0 20px; }
.auth-check { display:grid; grid-template-columns:18px minmax(0,1fr); gap:10px; align-items:start; font-size:12px; line-height:1.5; color:#55595e; cursor:pointer; }
.auth-check input { width:18px; height:18px; margin:1px 0 0; accent-color:var(--auth-ink); cursor:pointer; }
.auth-check a { color:var(--auth-accent-text); border-bottom:1px solid currentColor; }
.auth-check a:hover { color:var(--auth-ink); }
.auth-error { color:#a3291f; font-size:12px; line-height:1.5; }
.auth-error:not(:empty) { margin-bottom:16px; }
.auth-submit { display:flex; align-items:center; justify-content:space-between; gap:24px; width:100%; min-height:54px; padding:14px 22px; border:1px solid var(--auth-ink); border-radius:100px; background:linear-gradient(180deg,#2a2d30,#151719); color:#fff; font-size:14px; box-shadow:inset 0 1px 0 #ffffff1f,0 8px 20px #1517192e; transition:background .2s; }
.auth-submit>span { font-size:22px; line-height:1; color:#f6a274; }
.auth-submit:hover { background:#2f3337; }
.email-auth button:disabled { opacity:.5; cursor:wait; }
.auth-switch { margin-top:22px!important; font-size:13px; color:var(--auth-muted); text-align:center; }
.auth-switch button,.auth-code-actions button { padding:0; border:0; border-bottom:1px solid currentColor; border-radius:0; background:none; color:var(--auth-accent-text); font-size:inherit; }
.auth-switch button:hover,.auth-code-actions button:not(:disabled):hover { color:var(--auth-ink); }
.auth-code-actions { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:20px; font-size:12px; }
.auth-code-actions button:disabled { color:var(--auth-muted); cursor:default; }
.auth-note { margin-top:22px!important; color:#8d9093; font-size:11px; line-height:1.6; text-align:center; }
.auth-panel-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-top:16px; border-top:1px solid #e1e1dc; font-size:11px; color:#8d9093; }
.auth-panel-footer a:hover { color:var(--auth-ink); }
/* Landing modal: the dialog shows the same card without the page stage. */
.auth-modal { width:min(1180px,calc(100% - 48px)); max-width:none; max-height:calc(100dvh - 48px); padding:0; border:0; border-radius:28px; background:none; color:#111; overflow:auto; }
.auth-modal::backdrop { background:#020203eb; backdrop-filter:blur(14px); }
.auth-modal .auth-stage { display:block; min-height:0; padding:0; background:none; }
.auth-modal .email-auth { min-height:min(720px,calc(100dvh - 48px)); }
body.auth-modal-open { overflow:hidden; }
@media(max-width:999px) {
 .auth-panel { padding:20px 22px 16px 30px; }
 .auth-visual { padding:24px; }
}
@media(max-width:650px) {
 .auth-stage { place-items:start center; padding:10px; }
 .email-auth { grid-template-columns:1fr; min-height:0; padding:8px; border-radius:22px; }
 .auth-visual { min-height:180px; padding:18px; border-radius:16px; }
 .auth-logo { width:40px; }
 .auth-panel { padding:20px 14px 14px; }
 .auth-panel-content { margin:0 auto; padding:26px 0 26px; }
 .auth-panel h1 { font-size:36px; }
 .auth-panel-footer { justify-content:flex-start; gap:10px 18px; }
 .auth-modal { width:calc(100% - 20px); max-height:calc(100dvh - 20px); border-radius:22px; }
 .auth-modal .email-auth { min-height:0; }
}
@media(prefers-reduced-motion:reduce) { .email-auth * { transition:none!important; animation:none!important; } }
