/* Selected command-deck direction: real account controls, dashboard-grade glass.
   Scope to the landing so the account dashboard and in-map HUD remain intact. */
#authScreen{
 --landing-gold:#e8c283;
 --landing-line:#638696;
 --landing-frame:url('assets/dashboard-glass-frame.svg');
 color:#e7f1f0;
 background:#06101a url('assets/portal-universe-v2.webp') center/cover fixed;
}
#authScreen:before{
 background:linear-gradient(90deg,#050c16f5 0%,#07131edd 29%,#07131e91 54%,#06111a46 77%,#050c16b3 100%),
   linear-gradient(0deg,#040b15dc 0%,transparent 34%,#07131b48 100%);
}
#authScreen>.landing-header{
 display:flex;align-items:center;justify-content:space-between;gap:24px;
 width:100%;max-width:1600px;min-height:94px;padding:15px clamp(22px,4.5vw,76px);
 border-bottom:1px solid #8baab65e;
 background:linear-gradient(115deg,#142935ed,#0a1e29df 55%,#10252dd9);
 box-shadow:inset 0 2px 0 #a9cbd124,0 8px 28px #0005;
}
#authScreen>.landing-header:after{
 content:'';position:absolute;inset:0;pointer-events:none;
 border:15px solid transparent;border-image:var(--landing-frame) 20 stretch;
 border-bottom-width:0;opacity:.65;
}
#authScreen>.landing-header>.verse-brand{position:relative;z-index:1;width:270px;flex:0 0 270px}
#authScreen .portal-login{position:relative;z-index:3;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 88px;width:min(455px,48vw)}
#authScreen .portal-login input{height:36px;min-height:36px;border-color:#6c91a0a6;background:#06141fdf;box-shadow:inset 0 1px 4px #0008}
#authScreen .portal-login button{height:36px;background:linear-gradient(#9fbdc1,#668d96);border-color:#c5d9d6;color:#071a24;font-weight:700}
#authScreen .portal-login button:not(:disabled):hover{background:linear-gradient(#c7e0db,#8cadb1)}
#authScreen .portal-login button:not(:disabled):active{transform:translateY(1px);filter:brightness(.87)}
#authScreen .landing-planet{opacity:.85;filter:saturate(.9) drop-shadow(0 0 44px #1b7bb63d)}
#authScreen .portal-celestials .portal-moon{left:33%;top:16%;opacity:.58}
#authScreen .portal-celestials .portal-satellite{opacity:.4}
#authScreen .auth-layout{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,460px) minmax(0,1fr);
 align-items:center;gap:clamp(22px,3vw,48px);width:100%;max-width:1600px;
 padding:30px clamp(22px,4.5vw,76px) 36px;margin:auto;flex:1;
}
#authScreen .auth-layout:before{
 content:'';position:absolute;inset:0 0 0 39%;pointer-events:none;z-index:-1;
 background:url('assets/dashboard-orbit-overlay.svg') right center/cover no-repeat;opacity:.27;
}
#authScreen .auth-intro{grid-column:1;min-height:0;width:100%;max-width:475px;align-self:center;padding:0}
#authScreen .auth-eyebrow{display:block;color:var(--landing-gold);font:700 11px/1.5 PortalOxanium,Arial,sans-serif;letter-spacing:2.1px;text-transform:uppercase}
#authScreen .auth-intro h1{
 margin:18px 0 19px;max-width:475px;color:#f4f5ee;
 font:700 clamp(43px,4.3vw,67px)/1.04 PortalOxanium,Eurostile,sans-serif;
 letter-spacing:-1.5px;text-shadow:0 4px 22px #01070fa6;
}
#authScreen .auth-intro h1 em{color:var(--landing-gold);font-style:normal}
#authScreen .intro-copy{max-width:430px;margin:0;color:#c5d5d8;font:15px/1.75 Tahoma,Arial,sans-serif}
#authScreen .release-notice{margin:12px 0 0;max-width:430px;color:#e4d3a7;font:12px/1.5 PortalOxanium,Arial,sans-serif}
#authScreen .auth-steps{list-style:none;display:grid;gap:0;max-width:310px;margin:36px 0 0;padding:0}
#authScreen .auth-steps li{display:flex;flex-direction:column;gap:2px;padding:8px 0 9px;border-top:1px solid #8ba8a568}
#authScreen .auth-steps strong{color:#e7f0ed;font:700 11px/1.4 PortalOxanium,Arial,sans-serif;letter-spacing:.5px}
#authScreen .auth-steps span{color:#a9bec6;font:11px/1.4 Tahoma,Arial,sans-serif}
#authScreen .auth-card{
 grid-column:2;justify-self:center;width:100%;max-width:460px;margin:0;
 padding:22px 28px 24px;border:1px solid #819fac;border-top:3px solid var(--landing-gold);
 background:linear-gradient(130deg,#1b3540f2,#0a1b29f5 57%,#07151ff9);
 box-shadow:0 22px 80px #000b,inset 0 0 0 4px #07151f,inset 0 1px 0 #bbd7d136;
 clip-path:polygon(0 0,calc(100% - 13px) 0,100% 13px,100% 100%,13px 100%,0 calc(100% - 13px));
}
#authScreen .auth-card:before{
 content:'';position:absolute;inset:0;pointer-events:none;z-index:2;
 border:15px solid transparent;border-image:var(--landing-frame) 20 stretch;opacity:.5;
}
#authScreen .auth-card:after{right:27px;top:16px;width:46px;background:repeating-linear-gradient(90deg,#b2d4d7 0 4px,transparent 4px 7px);opacity:.6}
#authScreen .auth-dossier-meta{display:flex;justify-content:space-between;gap:20px;margin:0 0 10px;color:var(--landing-gold);font:700 10px/1.4 PortalOxanium,Arial,sans-serif;letter-spacing:1.2px}
#authScreen .auth-card h2{margin:0 0 4px;color:#f0f2eb;font:700 25px/1.25 PortalOxanium,Arial,sans-serif;letter-spacing:.6px}
#authScreen .auth-description{margin:0 0 11px;color:#bed0d5;font:12px/1.5 Tahoma,Arial,sans-serif}
#authScreen #authForm>label,#authScreen #nicknameFields>label,#authScreen #emailFields>label,#authScreen #registrationFields>label{margin:9px 0 4px;color:#b8d8e0;font:700 9px/1.4 PortalOxanium,Arial,sans-serif;letter-spacing:1.5px}
#authScreen #authForm input{height:36px;min-height:36px;margin:0;padding:8px 11px;border-color:#678694ac;background:#05131eea;box-shadow:inset 0 1px 3px #000a;color:#edf3f2;font:12px PortalOxanium,Arial,sans-serif}
#authScreen #authForm input::placeholder{color:#8cabb6;opacity:1}
#authScreen #authForm input:focus-visible,#authScreen .portal-login input:focus-visible{outline:2px solid #e6c585;outline-offset:1px;border-color:#dcbf88}
#authScreen .identity-help{margin:3px 0 0;color:#98b0ba;font:9px/1.3 Tahoma,Arial,sans-serif}
#authScreen .password-field #showPassword{height:34px;top:1px;color:#a9cad5}
#authScreen .company-choice{gap:6px;margin:7px 0 10px}
#authScreen .company-choice button{height:65px;padding:5px;border:1px solid #688896;background:#0b1b26;box-shadow:inset 0 0 0 2px #0d202b;color:#e8f0ed;transition:border-color .16s,background-color .16s,transform .16s}
#authScreen .company-choice button.selected{border-color:var(--landing-gold);background:#3a3e35;box-shadow:inset 0 0 0 1px #d7b77170}
#authScreen .company-choice button:not(.selected):hover{border-color:#b8d2d3;background:#183340}
#authScreen .company-choice button:active{transform:translateY(1px)}
#authScreen .company-choice img{width:24px;height:24px}
#authScreen .company-choice strong{font-size:10px}
#authScreen .company-choice small{font-size:9px}
#authScreen #authSubmit{min-height:43px;margin-top:8px;padding:8px 16px;border:1px solid #e5c78d;background:linear-gradient(#bd985e,#765937);box-shadow:inset 0 0 0 2px #674b2b;color:#fff5dc;font:700 13px PortalOxanium,Arial,sans-serif;letter-spacing:1.2px;transition:filter .16s,transform .16s}
#authScreen #authSubmit:not(:disabled):hover{filter:brightness(1.16)}
#authScreen #authSubmit:not(:disabled):active{filter:brightness(.88);transform:translateY(1px)}
#authScreen .auth-footer{max-width:1600px;width:100%;margin:auto;padding:13px clamp(22px,4.5vw,76px);border-top:1px solid #91aab553;background:#07131dc7}
#authScreen :is(button,a):focus-visible{outline:2px solid #f1d8a5;outline-offset:3px}
@media(max-width:1100px){
 #authScreen .auth-layout{grid-template-columns:minmax(0,1fr) minmax(390px,430px) minmax(0,1fr);gap:24px}
 #authScreen .auth-intro h1{font-size:clamp(39px,4.8vw,52px)}
 #authScreen .auth-card{max-width:430px}
}
@media(max-width:950px){
 #authScreen>.landing-header{flex-wrap:wrap;justify-content:center;gap:12px 25px;padding:14px 20px}
 #authScreen>.landing-header>.verse-brand{flex:0 0 230px;width:230px;margin-right:auto}
 #authScreen .portal-login{width:min(455px,100%)}
 #authScreen .auth-layout{display:flex;flex-direction:column;align-items:center;gap:22px;padding:30px 20px 38px}
 #authScreen .auth-intro{max-width:540px;align-self:center;text-align:center}
 #authScreen .auth-intro h1{max-width:none;margin:14px 0;font-size:clamp(39px,7vw,58px)}
 #authScreen .intro-copy,#authScreen .release-notice{max-width:540px}
 #authScreen .auth-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:none;margin:25px auto 0;text-align:left}
 #authScreen .auth-steps li{min-width:0}
 #authScreen .auth-card{width:min(100%,460px);max-width:460px}
 #authScreen .landing-planet{left:32vw;top:28dvh;opacity:.42}
}
@media(max-width:540px){
 #authScreen>.landing-header>.verse-brand{width:190px;flex-basis:190px;margin-right:0}
 #authScreen .portal-login{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 78px}
 #authScreen .portal-login label{font-size:7px}
 #authScreen .portal-login input{height:34px;min-height:34px;font-size:11px;padding:6px}
 #authScreen .portal-login button{height:34px;padding:5px;font-size:9px}
 #authScreen .auth-layout{padding:27px 12px 30px}
 #authScreen .auth-intro h1{font-size:clamp(36px,10vw,48px)}
 #authScreen .auth-eyebrow{font-size:9px;letter-spacing:1.2px}
 #authScreen .intro-copy{font-size:12px}
 #authScreen .auth-steps{gap:7px;margin-top:20px}
 #authScreen .auth-steps strong{font-size:9px}
 #authScreen .auth-steps span{font-size:9px}
 #authScreen .auth-card{padding:20px 17px 21px}
 #authScreen .auth-card h2{font-size:23px}
 #authScreen .auth-footer{padding:14px 12px}
}
@media(prefers-reduced-motion:reduce){#authScreen .company-choice button,#authScreen #authSubmit{transition:none}}
