
:root{--cyan:#00e5ff;--pink:#ff2fa8;--panel:rgba(5,8,12,.82);--line:rgba(255,255,255,.13)}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;background:#000;color:#fff;font-family:Inter,Arial,sans-serif;overflow:hidden}
body::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;background:radial-gradient(circle at 82% 72%,rgba(0,229,255,.15),transparent 10%),radial-gradient(circle at 18% 16%,rgba(255,47,168,.07),transparent 12%),repeating-linear-gradient(-28deg,rgba(255,255,255,.032) 0 14px,transparent 14px 44px),repeating-linear-gradient(28deg,rgba(255,255,255,.023) 0 14px,transparent 14px 44px),#000;background-size:auto,auto,260px 260px,260px 260px,auto}

/* One scene, two explicit states: INTRO first, LOGIN second. */
#scene{position:fixed;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;overflow:hidden;pointer-events:auto;transition:left .5s ease,right .5s ease,top .5s ease,bottom .5s ease,width .5s ease,height .5s ease,padding .5s ease,opacity .45s ease}
.robot-shell{position:relative;display:block;width:min(72vw,1080px);height:min(92vh,920px);transform-origin:50% 50%}
spline-viewer{display:block;width:100%;height:100%;background:transparent;filter:brightness(1.08) contrast(1.05) saturate(1.03)}
.robot-shell::after{content:"";position:absolute;right:0;bottom:0;width:clamp(190px,22%,250px);height:72px;background:#000;z-index:12;pointer-events:none;border-radius:18px 0 0 0}
.scene-shade{position:fixed;inset:0;z-index:2;pointer-events:none;background:radial-gradient(circle at 50% 48%,rgba(0,229,255,.09),transparent 24%),linear-gradient(to bottom,rgba(0,0,0,.30) 0%,rgba(0,0,0,.03) 38%,rgba(0,0,0,.12) 68%,rgba(0,0,0,.88) 100%)}

/* Intro is always full-screen and centered, independent of later login layout. */
.intro{position:fixed;inset:0;z-index:4;display:flex;align-items:flex-end;justify-content:center;pointer-events:none}
.intro-backdrop{position:absolute;inset:0;background:radial-gradient(circle at 50% 50%,rgba(0,229,255,.10),transparent 25%),linear-gradient(to bottom,rgba(0,0,0,.24),rgba(0,0,0,.02) 40%,rgba(0,0,0,.10) 66%,rgba(0,0,0,.92) 100%)}
.intro-copy{position:relative;width:100%;padding:0 22px clamp(56px,9vh,96px);text-align:center;animation:introCopy 4.3s ease both}
.eyebrow{font-size:10px;font-weight:900;letter-spacing:.32em;color:var(--cyan);text-transform:uppercase;margin-bottom:10px}
.intro h1{font-size:clamp(38px,6vw,76px);line-height:.94;margin:0;font-weight:950;letter-spacing:-.055em;text-transform:uppercase}
.intro p{font-size:11px;letter-spacing:.25em;text-transform:uppercase;color:rgba(255,255,255,.68);margin:14px 0 0}
body.intro-active .robot-shell{animation:robotEnter 4.3s cubic-bezier(.20,.78,.22,1) both;will-change:transform,opacity}
body:not(.intro-active) .intro{opacity:0;visibility:hidden;transition:opacity .45s ease,visibility .45s ease}

/* Login is centered. Robot positioning is completely separate from card positioning. */
.login-stage{position:fixed;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;padding:24px;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .45s ease .05s,visibility .45s ease .05s}
body.login-ready .login-stage{opacity:1;visibility:visible;pointer-events:none}.login-card{pointer-events:auto}
.login-card{width:min(520px,calc(100vw - 48px));max-height:calc(100dvh - 58px);overflow:auto;margin:0 auto;padding:26px;border:1px solid var(--line);border-radius:28px;background:linear-gradient(160deg,rgba(8,12,18,.91),rgba(2,4,8,.84));box-shadow:0 30px 100px rgba(0,0,0,.62),inset 0 1px 0 rgba(255,255,255,.07);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.brand{position:relative;display:block;text-align:center;margin-bottom:18px}
.brand-left{min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center}
.logo-official{display:block;width:min(230px,64%);max-width:100%;height:auto;filter:drop-shadow(0 0 14px rgba(0,229,255,.22));margin:0 auto 12px}
.brand-copy{text-align:center}
.brand-copy strong{display:block;font-size:38px;line-height:.96;letter-spacing:-.04em;margin:0 0 7px;text-transform:uppercase}
.brand-copy span{display:block;font-size:12px;color:rgba(255,255,255,.78);margin-top:2px}
.brand-copy small{display:block;margin-top:7px;font-size:11px;letter-spacing:.04em;color:var(--cyan);font-weight:700}
.access-badge{position:absolute;top:0;right:0;font-size:8px;letter-spacing:.16em;text-transform:uppercase;border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:7px 9px;color:rgba(255,255,255,.58);white-space:nowrap}
.info-strip{display:flex;align-items:center;justify-content:center;min-height:42px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035);padding:0 14px;margin-bottom:15px;box-shadow:inset 4px 0 0 var(--cyan);text-align:center}
.info-strip span{font-size:14px;color:rgba(255,255,255,.94)}
.info-strip b{color:#fff}
label{display:block;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.70);margin:13px 0 7px}
input{width:100%;height:48px;border-radius:15px;border:1px solid rgba(255,255,255,.13);outline:none;background:rgba(0,0,0,.48);color:#fff;padding:0 15px;font-size:16px;transition:border-color .18s ease,box-shadow .18s ease}
input:focus{border-color:rgba(0,229,255,.68);box-shadow:0 0 0 3px rgba(0,229,255,.08)}
button{width:100%;height:50px;margin-top:17px;border:1px solid rgba(0,229,255,.65);border-radius:15px;cursor:pointer;font-weight:900;font-size:15px;letter-spacing:.02em;color:#fff;background:linear-gradient(90deg,rgba(0,229,255,.18),rgba(0,229,255,.10));box-shadow:0 10px 30px rgba(0,229,255,.12)}
button:disabled{opacity:.55;cursor:wait}
.error{min-height:17px;margin-top:8px;font-size:11px;color:#ff8bbf;text-align:center}
.secure{margin-top:11px;font-size:9px;letter-spacing:.1em;text-align:center;color:rgba(255,255,255,.42);text-transform:uppercase}
.robot-note{position:fixed;right:3vw;bottom:46px;z-index:3;color:rgba(255,255,255,.72);font-size:9px;letter-spacing:.28em;text-transform:uppercase;pointer-events:none}
.footer{position:fixed;left:0;right:0;bottom:0;z-index:6;height:26px;display:flex;align-items:center;justify-content:center;border-top:1px solid rgba(255,255,255,.07);background:rgba(0,0,0,.84);font-size:8px;letter-spacing:.22em;color:rgba(255,255,255,.45);text-transform:uppercase}

@keyframes robotEnter{0%{transform:translate3d(0,34vh,0) scale(1.12);opacity:0}12%{opacity:1}60%{transform:translate3d(0,5vh,0) scale(1.04);opacity:1}84%{transform:translate3d(0,-1vh,0) scale(1.01);opacity:1}100%{transform:translate3d(0,0,0) scale(1);opacity:1}}
@keyframes introCopy{0%,20%{opacity:0;transform:translateY(18px)}34%,78%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-8px)}}

/* DESKTOP: centered card + large robot at far right */
@media (min-width:1200px){
  body.login-ready #scene{inset:0 0 26px 0;width:auto;height:auto;justify-content:flex-end;align-items:center;padding-right:0}
  body.login-ready .robot-shell{width:min(40vw,700px);height:min(88vh,860px);transform:translateX(6%) scale(1.10);transform-origin:88% 50%}
  body.login-ready .scene-shade{background:radial-gradient(circle at 86% 50%,rgba(0,229,255,.11),transparent 15%),linear-gradient(90deg,rgba(0,0,0,.68) 0%,rgba(0,0,0,.32) 37%,rgba(0,0,0,.10) 60%,rgba(0,0,0,.24) 100%),linear-gradient(to bottom,rgba(0,0,0,.38),transparent 28%,transparent 68%,rgba(0,0,0,.76))}
  .login-card{width:520px}
  .logo-official{width:230px}
}

/* IPAD / TABLET landscape and portrait */
@media (min-width:768px) and (max-width:1199px){
  body.login-ready #scene{inset:0 0 26px 0;width:auto;height:auto;justify-content:flex-end;align-items:center;padding-right:0}
  body.login-ready .robot-shell{width:min(34vw,430px);height:min(72vh,650px);transform:translateX(12%) scale(.98);transform-origin:90% 50%}
  body.login-ready .scene-shade{background:radial-gradient(circle at 88% 50%,rgba(0,229,255,.10),transparent 13%),linear-gradient(90deg,rgba(0,0,0,.72) 0%,rgba(0,0,0,.37) 38%,rgba(0,0,0,.12) 62%,rgba(0,0,0,.30) 100%)}
  .login-stage{padding:20px}
  .login-card{width:min(490px,calc(100vw - 40px));padding:23px;max-height:calc(100dvh - 46px)}
  .logo-official{width:min(200px,56%);margin-bottom:10px}
  .brand-copy strong{font-size:33px}
  .brand-copy span{font-size:11px}
  .info-strip{margin-bottom:13px}
  input{height:46px}
  button{height:48px;margin-top:15px}
  .access-badge{font-size:7px;padding:6px 8px}
  .intro-copy{padding-bottom:clamp(54px,8vh,82px)}
}

/* IPAD PORTRAIT: keep robot fully visible without clipping or covering card */
@media (min-width:768px) and (max-width:899px) and (orientation:portrait){
  body.login-ready .robot-shell{width:30vw;height:min(62vh,600px);transform:translateX(14%) scale(.94);transform-origin:92% 50%}
  .login-card{width:min(470px,calc(100vw - 36px))}
}

/* MOBILE: card remains centered; robot becomes non-blocking lower-right decoration */
@media (max-width:767px){
  html,body{overflow:auto;min-height:100%;height:auto}
  #scene{position:fixed;inset:0;justify-content:center;align-items:center;padding:0}
  .robot-shell{width:min(104vw,560px);height:min(78vh,700px);transform:scale(.94);transform-origin:50% 50%}
  .intro-copy{padding:0 16px 72px}
  .intro h1{font-size:clamp(34px,11vw,48px)}
  .intro p{font-size:9px;letter-spacing:.18em;line-height:1.5}
  body.login-ready #scene{left:auto;right:-9vw;top:auto;bottom:26px;width:58vw;height:39vh;justify-content:flex-end;align-items:flex-end;opacity:.78;padding:0}
  body.login-ready .robot-shell{width:66vw;height:42vh;transform:scale(.86);transform-origin:85% 90%}
  body.login-ready .scene-shade{background:linear-gradient(to bottom,rgba(0,0,0,.80) 0%,rgba(0,0,0,.52) 58%,rgba(0,0,0,.24) 100%)}
  .login-stage{position:relative;min-height:100dvh;padding:16px 12px 42px;align-items:center;justify-content:center}
  .login-card{width:min(100%,430px);max-height:none;padding:18px 16px;border-radius:22px;overflow:visible}
  .logo-official{width:min(165px,52%);margin:0 auto 9px}
  .brand{margin-bottom:13px}
  .brand-copy strong{font-size:28px;margin-bottom:5px}
  .brand-copy span{font-size:10px;line-height:1.35}
  .brand-copy small{font-size:10px;margin-top:5px}
  .access-badge{display:none}
  .info-strip{min-height:38px;margin-bottom:12px;padding:6px 11px}
  .info-strip span{font-size:12px;line-height:1.35}
  label{font-size:9px;margin:11px 0 6px}
  input{height:46px;font-size:16px}
  button{height:48px;margin-top:14px;font-size:14px}
  .secure{font-size:8px;line-height:1.4}
  .robot-note{display:none}
  .footer{font-size:7px;letter-spacing:.14em}
}

/* SMALL MOBILE */
@media (max-width:430px){
  .login-stage{padding:12px 9px 38px}
  .login-card{padding:16px 14px}
  .logo-official{width:min(150px,50%)}
  .brand-copy strong{font-size:26px}
  body.login-ready #scene{right:-13vw;width:60vw;height:34vh;opacity:.70}
  body.login-ready .robot-shell{width:72vw;height:38vh;transform:scale(.80)}
}

/* SHORT SCREENS / IPAD LANDSCAPE */
@media (min-width:768px) and (max-height:760px){
  .login-card{padding:18px 22px;max-height:calc(100dvh - 38px)}
  .logo-official{width:160px;margin-bottom:7px}
  .brand{margin-bottom:11px}
  .brand-copy strong{font-size:29px;margin-bottom:4px}
  .brand-copy span{font-size:10px}
  .brand-copy small{font-size:9px;margin-top:4px}
  .info-strip{min-height:36px;margin-bottom:10px}
  label{margin:9px 0 5px}
  input{height:42px}
  button{height:44px;margin-top:12px}
  .secure{margin-top:7px;font-size:8px}
}

@media (prefers-reduced-motion:reduce){body.intro-active .robot-shell{animation:none;opacity:1;transform:none}.intro-copy{animation:none;opacity:1;transform:none}}


/* Branding cover is anchored to the Spline viewport itself, so it follows the viewer in every responsive state. */
@media (min-width:1200px){.robot-shell::after{width:240px;height:76px}}
@media (min-width:768px) and (max-width:1199px){.robot-shell::after{width:220px;height:72px}}
@media (max-width:767px){.robot-shell::after{width:min(48vw,210px);height:68px;border-radius:16px 0 0 0}}
@media (max-width:430px){.robot-shell::after{width:min(54vw,205px);height:66px}}

/* The access form is available immediately; decorative 3D never blocks login. */
html{height:auto;min-height:100%;overflow:auto}body.login-ready{height:auto}body.login-ready::before{display:none}
body.login-ready{background:#f5f7f6;color:#172b24;min-height:100svh;overflow:auto;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.intro,#scene,.scene-shade,.robot-note{display:none!important}
body.login-ready .login-stage{position:relative;inset:auto;min-height:100svh;display:grid;place-items:center;opacity:1;visibility:visible;pointer-events:auto;padding:32px 20px 64px;background:radial-gradient(ellipse at top,#e4f2e9 0,transparent 65%)}
body.login-ready .login-card{position:relative;inset:auto;transform:none;margin:auto;width:min(100%,440px);max-width:440px;background:#fff;color:#172b24;border:1px solid #dfe7e2;border-radius:20px;padding:28px;box-shadow:0 16px 48px rgba(16,64,42,.07);backdrop-filter:none}
.login-card .brand{align-items:center;gap:12px;border-bottom:1px solid #e5ece7;padding-bottom:20px;margin-bottom:20px}.login-card .brand-left{min-width:0;gap:12px}.login-card .logo-official{width:64px;height:64px;object-fit:contain;filter:none}.login-card .brand-copy strong{font-size:22px;color:#172b24}.login-card .brand-copy span,.login-card .brand-copy small{color:#61746b;font-size:12px;line-height:1.45}.login-card .access-badge{color:#087c4d;background:#edf7f1;border:0;padding:6px 8px;font-size:10px;letter-spacing:.04em;white-space:nowrap}
.login-card .info-strip{background:transparent;border:0;padding:0;margin:0 0 24px;color:#61746b;font-size:14px;line-height:1.5}.login-card label{display:block;color:#304b3d;font-size:13px;font-weight:650;letter-spacing:0;text-transform:none;margin:16px 0 7px}.login-card input{width:100%;height:48px;border:1px solid #cfddd4;border-radius:10px;background:#fff;color:#172b24;padding:10px 12px;font-size:16px;box-shadow:none}.login-card input:focus{outline:3px solid #d9eee1;outline-offset:1px;border-color:#087c4d}.login-card #submitBtn{height:48px;width:100%;margin-top:24px;background:#087c4d;color:#fff;border:0;border-radius:10px;font-size:15px;font-weight:700;box-shadow:none;transition:background .15s}.login-card #submitBtn:hover{background:#075637}.login-card #submitBtn:disabled{opacity:.65;cursor:wait}.login-card .error{color:#a62e2e;line-height:1.5;min-height:0;margin-top:12px}.login-card .error:empty{display:none}.login-card .secure{color:#61746b;border-color:#e5ece7;font-size:11px;letter-spacing:.02em}.footer{position:fixed;bottom:0;left:0;right:0;background:#f5f7f6;color:#61746b;border:0;padding:12px;text-align:center;font-size:10px;letter-spacing:.1em}
@media(max-width:600px){body.login-ready .login-stage{padding:20px 14px 56px}.login-card .brand-copy span{font-size:11px}.login-card .access-badge{display:none}body.login-ready .login-card{padding:24px 20px;border-radius:16px}.login-card .logo-official{width:54px;height:54px}}
body.login-ready .login-card{max-height:none;overflow:visible}.login-card .info-strip{box-shadow:none;justify-content:flex-start;text-align:left}.login-card .info-strip span,.login-card .info-strip b{color:#304b3d}.login-card .brand{display:flex;align-items:center;justify-content:space-between;gap:16px}.login-card .brand-left{flex-direction:row;align-items:center;text-align:left;gap:14px}.login-card .brand-copy{text-align:left}.login-card .brand-copy span{max-width:22ch}.login-card .logo-official{margin:0;flex-shrink:0}.login-card .access-badge{position:static;white-space:normal;text-align:center;max-width:72px;flex-shrink:0}@media(max-width:600px){.login-card .brand-copy strong{font-size:22px}.login-card .access-badge{display:none}}
body.login-ready .login-stage{min-height:calc(100svh - 38px);padding-bottom:32px}body.login-ready .footer{position:static;inset:auto;height:auto;min-height:38px;padding:10px 16px;line-height:1.8}

