:root{
  color-scheme:dark;
  --auth-bg:#070b13;--auth-card:#111d2e;--auth-border:#304863;--auth-line:#39516c;
  --auth-text:#edf5ff;--auth-muted:#b1c2d9;--auth-accent:#7bdcff;--auth-field:#0a1423;
  --auth-logo:url('/branding/st-hunter-logo-dark-20260907.png');--auth-blend:screen;
  --auth-shadow:0 32px 100px rgba(0,3,12,.5);--auth-edge:rgba(173,215,255,.2);--auth-button-text:#081724;
}
html[data-sen-theme="light"]{
  color-scheme:light;
  --auth-bg:#eaf0f8;--auth-card:#f6f9ff;--auth-border:#bfd0e5;--auth-line:#aabed8;
  --auth-text:#18324f;--auth-muted:#516982;--auth-accent:#166ba5;--auth-field:#fff;
  --auth-logo:url('/branding/st-hunter-logo-light-20260907.png');--auth-blend:multiply;
  --auth-shadow:0 32px 100px rgba(34,65,110,.16);--auth-edge:rgba(255,255,255,.95);--auth-button-text:#fff;
}
html,body,#root{min-height:100%}
body{margin:0;color:var(--auth-text);background:radial-gradient(ellipse at 20% 20%,rgba(45,119,218,.16),transparent 55%),var(--auth-bg)!important;font-family:"PingFang SC","Microsoft YaHei",sans-serif!important}
body::before{content:"";position:fixed;inset:0;pointer-events:none;background-image:linear-gradient(rgba(93,154,221,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(93,154,221,.04) 1px,transparent 1px);background-size:56px 56px;mask-image:linear-gradient(#000,transparent)}
#root{position:relative;z-index:1;background:transparent;width:100%;margin:0}
#root>div{min-height:100vh}
.sen-theme-toggle{position:fixed;z-index:20;top:24px;left:28px;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px;border:1px solid var(--auth-border);border-radius:8px;background:var(--auth-card);color:var(--auth-text);box-shadow:inset 0 1px 0 var(--auth-edge);font:600 13px "PingFang SC",sans-serif;cursor:pointer}
.sen-theme-toggle b{color:var(--auth-accent)}.sen-theme-toggle:hover{border-color:var(--auth-accent)}
#first-factor-stage{box-sizing:border-box;position:relative;width:min(1040px,calc(100vw - 80px))!important;max-width:none!important;height:auto!important;min-height:520px!important;margin:auto!important;padding:66px 58px 54px 600px!important;border:1px solid var(--auth-border)!important;border-radius:20px!important;background:var(--auth-card)!important;box-shadow:inset 0 1px 0 var(--auth-edge),var(--auth-shadow)!important;color:var(--auth-text)!important;isolation:isolate}
#first-factor-stage::before{content:"";position:absolute;left:48px;top:90px;width:460px;height:210px;background:var(--auth-logo) center/contain no-repeat;mix-blend-mode:var(--auth-blend);pointer-events:none}
#first-factor-stage::after{content:"ST HUNTER";position:absolute;left:60px;top:326px;width:430px;padding-top:24px;border-top:1px solid var(--auth-border);text-align:left;font:600 36px/1.3 "PingFang SC",sans-serif;letter-spacing:.16em;color:var(--auth-text);pointer-events:none}
#first-factor-stage img{display:none!important}
#first-factor-stage h5{font:700 27px/1.4 "PingFang SC",sans-serif!important;margin:0 0 26px!important;color:var(--auth-text)!important}
#first-factor-stage label,#first-factor-stage input,#first-factor-stage p{color:var(--auth-text)!important}
#first-factor-stage input{color:var(--auth-text)!important;caret-color:var(--auth-accent);font-size:16px!important}
#first-factor-stage input:-webkit-autofill{-webkit-text-fill-color:var(--auth-text)!important;box-shadow:0 0 0 1000px var(--auth-field) inset!important}
#first-factor-stage .MuiOutlinedInput-root{background:var(--auth-field)!important;border-radius:9px!important}
#first-factor-stage fieldset{border-color:var(--auth-line)!important}
#first-factor-stage .MuiOutlinedInput-root:hover fieldset,#first-factor-stage .Mui-focused fieldset{border-color:var(--auth-accent)!important}
#first-factor-stage button:not(#sign-in-button),#first-factor-stage .MuiCheckbox-root{color:var(--auth-muted)!important}
#first-factor-stage .MuiFormControlLabel-label{color:var(--auth-muted)!important}
#sign-in-button{min-height:50px!important;border-radius:9px!important;color:var(--auth-button-text)!important;background:var(--auth-accent)!important;box-shadow:0 8px 24px rgba(33,123,215,.22)!important;font-size:16px!important;font-weight:750!important;letter-spacing:.08em!important}
#sign-in-button:hover{filter:brightness(1.08)}#sign-in-button:disabled{opacity:.5}
#language-button{color:var(--auth-text)!important}#root a{color:var(--auth-muted)!important}
#authenticated-stage.MuiGrid-root{box-sizing:border-box;margin:64px auto!important;width:min(540px,calc(100vw - 64px))!important;height:auto!important;min-height:0!important;padding:40px!important;border:1px solid var(--auth-border)!important;border-radius:20px!important;background:var(--auth-card)!important;box-shadow:inset 0 1px 0 var(--auth-edge),var(--auth-shadow)!important}
#authenticated-stage img{content:var(--auth-logo);width:300px!important;max-width:100%!important;height:100px!important;object-fit:contain;mix-blend-mode:var(--auth-blend)}
#authenticated-stage .MuiTypography-root{color:var(--auth-text)!important}
#authenticated-stage h5{font-size:24px!important;font-weight:700!important}
:focus-visible{outline:2px solid var(--auth-accent);outline-offset:4px}
@media(max-width:1100px){#first-factor-stage{width:900px!important;padding-left:490px!important;padding-right:42px!important}#first-factor-stage::before{left:30px;width:400px}#first-factor-stage::after{left:48px;width:350px}}
@media(max-width:800px){#first-factor-stage{width:calc(100vw - 40px)!important;min-height:0!important;padding:42px!important}#first-factor-stage::before,#first-factor-stage::after{display:none}#first-factor-stage img{display:block!important;content:var(--auth-logo);width:240px!important;height:80px!important;max-width:100%!important;object-fit:contain;mix-blend-mode:var(--auth-blend)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
