/* One locally hosted image replaces layered dark gradients. */
body{background:#081522 url('/assets/workspace-background-v18.png') center/cover fixed no-repeat}
.hero{background:none}.hero:before{display:none}#earth{filter:none}
.hero header{height:200px}.brand{margin-left:1vw}
.site-legal{position:fixed;bottom:18px;left:6.5vw;display:flex;gap:22px;z-index:4;font-size:11px;color:#9caebd}.site-legal a{text-decoration:none;padding:4px 0}.site-legal a:hover{text-decoration:underline;color:#fff}
html.auth-open .site-legal,html.workspace-transition .site-legal{visibility:hidden}
.status{font-size:10px;letter-spacing:.04em;text-transform:none}.status i{width:7px;height:7px;background:#d8a154}.status[data-state=online] i{background:#67c59b}.status[data-state=degraded] i{background:#dfa74d}.status[data-state=offline] i{background:#e27878}
.auth-dialog{top:50%;transform:translateY(-50%);height:620px;max-height:calc(100svh - 48px);padding:25px 30px;width:min(450px,calc(100vw - 40px))}
#auth-logo{top:27px;width:145px}#auth-logo img{width:145px}
.auth-light{background:#102334f5;box-shadow:inset 0 1px 0 #a7cce90b,0 18px 70px #0002}
.auth-content{padding:107px 5px 0;display:block}.auth-content h2,.auth-content:has(#password-form:not([hidden])) h2{font-size:27px;margin-bottom:13px}
.auth-description{font-size:12px!important;line-height:1.55!important;color:#bacbd8!important;margin:0 0 18px!important}
.auth-content label{margin:13px 0 4px;font-size:11px}.auth-content input{padding:9px 2px}
.auth-primary,.auth-secondary{min-height:40px;padding:10px 18px}.auth-primary{margin-top:20px}.auth-secondary{margin-top:9px}
.auth-legal{margin-top:19px;border-top:1px solid #8baac124;padding-top:12px;color:#9fb2c1}
.auth-legal p,.auth-legal details{font-size:10px!important;line-height:1.5!important;margin:0;text-align:left;letter-spacing:0}
.auth-legal details{margin-top:8px}.auth-legal details p{margin:7px 0}.auth-legal summary{font-size:10px}
.auth-legal nav{display:flex;gap:15px;flex-wrap:wrap;margin-top:10px;font-size:10px}.auth-legal a{text-decoration:none;color:#bdd4e4}.auth-legal a:hover{text-decoration:underline}
#workspace-panel{background:#081522 url('/assets/workspace-background-v18.png') center/cover no-repeat;animation:workspace-enter .18s ease-out}
html.workspace-transition body::after{background:#081522;z-index:9}
@media(max-width:850px){.auth-dialog{left:20px;width:calc(100vw - 40px);height:640px;max-height:calc(100svh - 40px);padding:25px 22px}.hero header{height:150px}.brand{margin-left:0}.status{font-size:9px;max-width:120px;line-height:1.5}.site-legal{left:7vw;bottom:12px;gap:20px}}
@media(max-height:650px){.auth-dialog{height:calc(100svh - 24px);max-height:calc(100svh - 24px)}#auth-logo{top:20px;width:110px}#auth-logo img{width:110px}.auth-content{padding-top:80px}}
@media(min-height:651px){.auth-content{padding-top:95px}.auth-description{margin-bottom:14px!important}.auth-legal{margin-top:15px}}


/* v21: stronger type and a one-shot light sweep on the login entry. */
.hero header .brand img{width:292px}
.hero header .status{position:absolute;right:0;top:48px;width:max-content;max-width:calc(100% - 332px);justify-content:flex-end;text-align:right;line-height:1.5}
.hero header .status span{min-width:0}
.hero h1{font-size:clamp(34px,3.65vw,64px);font-weight:700}
.login-trigger{position:relative;display:inline-flex;align-items:center;gap:18px;margin-top:34px;padding:12px 15px 12px 0;min-height:48px;border:0;border-radius:3px;background:transparent;color:#b7cce2;font-size:18px;font-weight:600;letter-spacing:.015em;cursor:pointer}
.login-trigger span{margin:0;color:inherit}
.login-trigger:hover{color:#b7cce2}
.login-arrow{width:22px;height:22px;flex:none;overflow:visible;color:#8fbaed;transition:transform .18s cubic-bezier(.2,.7,.3,1),color .2s}
.login-trigger.is-lit .login-arrow{transform:translateX(15px);color:#e0efff}
.login-label{position:relative;display:block}
.login-light{position:absolute;inset:0;pointer-events:none;clip-path:inset(0 100% 0 0);color:#f5fbff!important;text-shadow:0 0 12px #9dceff88}
@media(max-width:850px){.hero header .brand img{width:208px}.hero header .status{top:29px;max-width:calc(100% - 226px);font-size:9px;gap:7px}.hero header{height:150px}.hero h1{font-size:clamp(32px,8.25vw,53px)}}
@media(max-width:380px){.hero header .brand img{width:187px}.hero header .status{max-width:calc(100% - 202px)}}
@media(prefers-reduced-motion:reduce){.login-arrow{transition:none}}


/* v25: a continuous crest carried by individually illuminated glyphs. */
.login-label{font-kerning:none;isolation:isolate}
.login-light{inset:0;padding:0;clip-path:none;white-space:nowrap;text-shadow:none;color:#75c6ff!important}
.login-light .login-glyph{display:inline-block;opacity:0;color:inherit;will-change:opacity}
.login-wave{display:none}
.login-arrow{transition:color .35s,filter .35s;will-change:transform}
.login-trigger.is-lit .login-arrow{color:#92d4ff;filter:drop-shadow(0 0 4px #228fff88)}
.login-label::before{content:"";position:absolute;inset:-12px -16px;z-index:-1;background:radial-gradient(ellipse,#238fff22,transparent 68%);opacity:0;transform:scale(.7);pointer-events:none;transition:opacity .6s,transform .7s}
.login-trigger.is-lit .login-label::before{opacity:1;transform:scale(1)}
@media(prefers-reduced-motion:reduce){.login-arrow,.login-label::before{transition:none}}

/* Reusable panel material: quiet blue glass, fine edge light and clear centre. */
:root{--panel-surface:radial-gradient(ellipse at 0% 0%,#426e9952,transparent 58%),radial-gradient(ellipse at 100% 100%,#254e8240,transparent 58%),linear-gradient(145deg,#10293e 0%,#0b1c30 53%,#10273b 100%);--panel-edge:inset 0 1px 0 #b3dfff22,inset 0 -1px 0 #5688b822,0 22px 65px #0005}
.panel-surface,.auth-light{background:var(--panel-surface);box-shadow:var(--panel-edge)}
.auth-light::after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(120deg,#91caff09,transparent 35%,transparent 70%,#82bbff08);pointer-events:none}
.auth-dialog{height:min(730px,calc(100svh - 90px));max-height:none;top:calc((100svh - min(730px,100svh - 90px))/2);transform:none;padding:24px 30px}
#auth-logo,#auth-logo img{width:230px}#auth-logo{top:24px}
.auth-content{padding:157px 5px 0}
.site-legal{position:fixed;left:0;right:0;bottom:12px;justify-content:center;gap:24px;z-index:30;padding:5px 12px;color:#b6c8db;font-size:11px}
html.auth-open .site-legal,html.workspace-transition .site-legal{visibility:visible}
.site-legal a{white-space:nowrap;text-decoration:none}.site-legal a:focus-visible{outline:2px solid #a1ceee;outline-offset:4px}
.hero header .status{color:#f4f8ff;gap:9px}
.core-server-icon{width:19px;height:19px;flex:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;color:#dfa74d;filter:drop-shadow(0 0 4px currentColor)}
.status[data-state=online] .core-server-icon{color:#67d6a5}.status[data-state=degraded] .core-server-icon{color:#e8ad51}.status[data-state=offline] .core-server-icon{color:#ef747c}
@media(max-width:850px){.auth-dialog{padding:22px;width:calc(100vw - 40px)}#auth-logo,#auth-logo img{width:210px}.auth-content{padding-top:146px}.site-legal{font-size:10px;gap:17px;bottom:10px}.core-server-icon{width:17px;height:17px}}
@media(max-height:650px){#auth-logo,#auth-logo img{width:185px}#auth-logo{top:18px}.auth-content{padding-top:125px}}
@media(min-height:651px){.auth-content{padding-top:147px}.auth-content input{height:35px;padding:6px 2px}.auth-content label{margin-top:10px}.auth-description{margin-bottom:10px!important}}

/* Clear navy surface: colour stays at the edge, centre stays quiet. */
:root{--panel-surface:radial-gradient(ellipse at 100% 0%,#2457ac18,transparent 55%),linear-gradient(155deg,#09162c,#071124 60%,#0a1830);--panel-edge:inset 0 1px 0 #8fbbff19,inset 0 -1px 0 #3463a51c,0 22px 65px #0005}
.auth-light::after{background:linear-gradient(125deg,#367fff06,transparent 30%,transparent 75%,#3466ad08)}
.auth-frame path{stroke:#6587b4}
.auth-primary{background:linear-gradient(115deg,#255ba2,#2e6abc);border-color:#5183c2;box-shadow:inset 0 1px 0 #accfff20,0 4px 16px #02091733}
.auth-primary:hover{background:linear-gradient(115deg,#2b68b8,#3779cf);border-color:#78a8e4}
.auth-secondary{background:#0b1930;border-color:#354d72}.auth-secondary:hover{background:#112441;border-color:#6385b7}
.auth-content input{border-bottom-color:#405777}

/* Larger status typography, clearer footer grouping and room for the brand. */
.hero header .status{font-size:19px;line-height:1.3;letter-spacing:0;max-width:calc(100% - 332px)}
.site-legal{gap:0}.site-legal a+a::before{content:"·";display:inline-block;margin:0 15px;color:#7f9aba;pointer-events:none}
#auth-logo,#auth-logo img{width:265px}.auth-content{padding-top:170px}
.auth-legal details[hidden]{display:none!important}
@media(max-width:850px){.hero header .status{font-size:17px;max-width:calc(100% - 226px)}#auth-logo,#auth-logo img{width:245px}.auth-content{padding-top:167px}.site-legal a+a::before{margin:0 10px}}
@media(max-width:380px){.hero header .status{max-width:calc(100% - 202px)}}
@media(max-height:650px){#auth-logo,#auth-logo img{width:210px}.auth-content{padding-top:140px}}
@media(max-width:850px){html.auth-open .hero header .status{top:6px;max-width:100%}}

/* Inward-facing edge lighting, contained entirely inside the panel. */
:root{--panel-edge:inset 0 1px 0 #a8d5ff50,inset 1px 0 0 #6faaff30,inset -1px 0 0 #548ce62e,inset 0 -1px 0 #629bea32,0 22px 65px #0005}
.auth-light::after{inset:0;border-radius:inherit;background:linear-gradient(180deg,#76b5ff28 0, #327be812 9px,transparent 32px),linear-gradient(90deg,#559fff24 0,#2b73dc0e 8px,transparent 24px),linear-gradient(270deg,#478feb1c 0,#296ad50a 7px,transparent 22px),linear-gradient(0deg,#4b91ed1c 0,#276bc70a 7px,transparent 25px);box-shadow:inset 0 0 0 1px #91c5ff18}

/* Quiet system status and a stronger, contained edge light. */
.hero header .status{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;font-weight:400;letter-spacing:.025em;line-height:1.4;color:#e4edf9;gap:10px}
.core-server-icon{width:18px;height:18px;stroke-width:1.5;filter:drop-shadow(0 0 3px currentColor)}
:root{--panel-edge:inset 0 1px 0 #b7deff78,inset 1px 0 0 #83baff48,inset -1px 0 0 #679df344,inset 0 -1px 0 #78b0ff4c,0 22px 65px #0005}
.auth-light::after{background:linear-gradient(180deg,#76b5ff40 0,#327be820 10px,transparent 36px),linear-gradient(90deg,#559fff38 0,#2b73dc19 9px,transparent 28px),linear-gradient(270deg,#478feb30 0,#296ad515 8px,transparent 26px),linear-gradient(0deg,#4b91ed30 0,#276bc714 8px,transparent 29px);box-shadow:inset 0 0 0 1px #a3d1ff28}
@media(max-width:850px){.hero header .status{font-size:12px;letter-spacing:.015em;gap:7px}.core-server-icon{width:17px;height:17px}}

.auth-viewport{height:100%;overflow:hidden;border-radius:3px}
.auth-content{will-change:transform;overflow-x:hidden}
.field-light{position:relative;display:block;isolation:isolate}
.field-light::before{content:"";position:absolute;inset:0 0 2px;z-index:-1;background:linear-gradient(0deg,#469bff3d 0,#287ddd16 9px,transparent 27px);opacity:0;transition:opacity .16s;pointer-events:none}
.field-light:focus-within::before{opacity:1}
.auth-content input:focus,.auth-content input:focus-visible{border-bottom-color:#a7d8ff;box-shadow:0 1px 0 #489bea88}
.otp-fields{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:12px 0 9px}
.auth-content .otp-digit{width:100%;height:53px;padding:7px 0;font-size:27px;text-align:center;line-height:1;letter-spacing:0;caret-color:#b5ddff}
#code-form .auth-small{font-size:11px;margin:12px 0 15px}
#code-form .auth-primary{margin-top:16px}
#code-form .auth-secondary{margin-top:9px}
@media(max-width:500px){.otp-fields{gap:9px}.auth-content .otp-digit{font-size:25px;height:49px}}
@media(prefers-reduced-motion:reduce){.field-light::before{transition:none}}
.auth-content:has(#code-form:not([hidden])) .auth-legal>p{display:none}
.auth-content:has(#code-form:not([hidden])) .auth-legal{margin-top:14px;padding-top:8px}

/* Keep scrolling fields below the travelling logo in every login step. */
html:not(.admin-panel-open) #auth-dialog{--login-logo-space:170px}
html:not(.admin-panel-open) #auth-dialog .auth-viewport{margin-top:var(--login-logo-space);height:calc(100% - var(--login-logo-space))}
html:not(.admin-panel-open) #auth-dialog .auth-content{padding-top:0}
@media(max-width:850px){html:not(.admin-panel-open) #auth-dialog{--login-logo-space:167px}}
@media(max-height:650px){html:not(.admin-panel-open) #auth-dialog{--login-logo-space:140px}}
