/* Resident login: decorative animation remains visible on narrow screens. */
:root{--bg:#eceff5;--text:#202b3f;--muted:#5d739a;--primary:#233a63;--primary2:#162846;--border:#dae0e9;--shadow:0 30px 100px #18253b20}
body{background:radial-gradient(ellipse at 8% 5%,#dde2eb,transparent 48%),radial-gradient(ellipse at 95% 95%,#ced9ec,transparent 45%),var(--bg);padding:32px;min-height:100svh}
#form1{width:100%;max-width:1080px}.wrap{width:100%;grid-template-columns:1.08fr 1fr;border:1px solid #fff;border-radius:32px;min-height:680px;background:#fafbfe;isolation:isolate}
.visual{background:radial-gradient(ellipse at 70% 35%,#314260 0,transparent 60%),linear-gradient(145deg,#12213a,#101a2c);padding:36px 36px 24px;min-width:0;min-height:680px;justify-content:flex-start}.visual:before,.visual:after{display:none}
.brand{gap:12px}.brand-icon{width:46px;height:46px;border:1px solid #c6d0e22b;border-radius:15px;color:#afc5ea;background:#ffffff09}.brand strong{font-size:15px}.brand small{color:#9eacc4;font-size:9px;letter-spacing:2px;direction:ltr;text-align:right;margin-top:7px}
.hero{margin-top:44px}.home-kicker{color:#8da2c6;font-size:10px;letter-spacing:.3px}.hero h1{font-size:31px;line-height:1.75;font-weight:700;margin:10px 0}.hero h1 em{font-style:normal;color:#96b4e9}.hero p{color:#b3bed2;max-width:340px;line-height:2.1;font-size:11px}
.resident-scene{height:305px;position:relative;margin:0 -36px;overflow:hidden;direction:ltr}.resident-scene>svg{position:absolute;width:100%;height:255px;left:0;bottom:0;opacity:.95}.home-moon{position:absolute;width:40px;height:40px;left:22%;top:25px;border-radius:50%;background:#b2c8ef;box-shadow:0 0 55px #a7c0ec3b;animation:moon-glow 6s ease-in-out infinite alternate}.home-orbit{position:absolute;width:300px;height:300px;border:1px solid #8dabdf12;border-radius:50%;left:calc(50% - 150px);top:0}.home-orbit:before{content:"";position:absolute;inset:24px;border:1px solid #8dabdf0d;border-radius:50%}
.scene-card{position:absolute;display:flex;align-items:center;gap:9px;padding:10px 13px;border:1px solid #d6dce635;border-radius:15px;background:#1b2b46f0;color:#cedbf2;box-shadow:0 8px 24px #09142830;font-size:11px;direction:rtl;animation:resident-float 6s ease-in-out infinite}.scene-card small{display:block;margin-top:4px;color:#b5c0d3;font-size:9px}.card-symbol{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:#94afde16;color:#9ebaea;font-size:23px}.card-symbol i{font-size:15px}.card-home{right:6%;top:42px}.card-message{left:5%;bottom:36px;animation-delay:-3s}
.visual-bottom{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;font-size:9px;color:#a4b2c9}.visual-bottom button{border:1px solid #bfc8d82b;border-radius:30px;padding:9px 13px;background:#ffffff08;color:#cfd6e3;font:inherit;cursor:pointer;min-height:36px}
.login{padding:48px 42px}.login h2{font-size:26px;letter-spacing:-.7px}.eyebrow{font-size:11px;margin-bottom:12px}.sub{font-size:11px;line-height:2.2;margin-bottom:30px}.field label{font-size:11px}.input,.select{background:#f7f8fb;border-color:#d6dce6;height:54px;font-size:14px}.input:focus,.select:focus{border-color:#5f779f;box-shadow:0 0 0 4px #e6eaf0;background:#fff}.btn{height:53px;font-size:13px;box-shadow:0 9px 24px #243b6325;transition:transform .2s,box-shadow .2s}.btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 12px 28px #243b6330}.btn.secondary{color:var(--primary);border-color:#cfd6e2}.hint{font-size:10px;line-height:2.2;border-color:#d3dae5}.password-back,.password-eye{color:var(--primary)}button:focus-visible,.btn:focus-visible{outline:3px solid #5f80b8;outline-offset:4px}
#loginAjaxRoot .message.login-progress{background:#eff2f6;border-color:#d3d9e4;color:#283957}#loginAjaxRoot .message.login-progress:before{border-color:#c5cddc;border-top-color:#233a63;border-right-color:#637aa1}#loginAjaxRoot .message.login-progress:after{background:linear-gradient(90deg,transparent,#899ab8,#233a63,transparent)}
.city-window-off{opacity:.12}.city-window{animation:resident-window 5s ease-in-out infinite}.cw1{animation-delay:-1.4s}.cw2{animation-delay:-3.1s;animation-duration:6s}.cw3{animation-delay:-4.2s}.cw4{animation-delay:-2s;animation-duration:7s}.city-route{stroke-dasharray:5 14;animation:resident-route 9s linear infinite}.route-two{animation-direction:reverse;animation-duration:12s}.city-lift{animation:resident-lift 8s ease-in-out infinite}.lift-3{animation-delay:-3s}.lift-5{animation-delay:-5s}.city-distant{animation:resident-distant 16s ease-in-out infinite alternate}
@keyframes resident-window{0%,100%{opacity:.18}45%,65%{opacity:1}}@keyframes resident-route{to{stroke-dashoffset:-190}}@keyframes resident-lift{0%,100%{transform:translateY(0)}50%{transform:translateY(110px)}}@keyframes resident-distant{from{transform:translateX(-8px)}to{transform:translateX(8px)}}@keyframes resident-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}@keyframes moon-glow{to{opacity:.7;box-shadow:0 0 65px #a7c0ec55}}
.resident-paused .resident-scene *,.resident-away .resident-scene *{animation-play-state:paused!important}
@media(max-width:800px){body{padding:16px}.wrap{max-width:520px;margin:auto;grid-template-columns:1fr;border-radius:26px;min-height:0}.visual{padding:22px 24px 14px;min-height:0;height:310px}.brand-icon{width:37px;height:37px;font-size:17px}.brand strong{font-size:13px}.brand small{font-size:8px;letter-spacing:1.6px}.hero{margin-top:17px}.home-kicker{font-size:9px}.hero h1{font-size:23px;line-height:1.65;margin:5px 0}.hero p{display:none}.resident-scene{position:absolute;bottom:30px;left:0;right:0;height:164px;margin:0}.resident-scene>svg{height:165px;opacity:.78}.home-moon{width:27px;height:27px;left:18%;top:10px}.home-orbit{width:220px;height:220px;left:calc(50% - 110px)}.scene-card{padding:7px 9px;gap:7px;font-size:9px;border-radius:11px}.scene-card small{font-size:8px}.card-symbol{width:25px;height:25px;font-size:20px}.card-home{right:auto;left:7%;top:48px}.card-message{left:auto;right:7%;bottom:15px}.visual-bottom{font-size:8px}.visual-bottom button{padding:5px 10px;min-height:30px}.login{padding:29px 27px 28px}.login h2{font-size:23px}.sub{margin:8px 0 23px}.input{font-size:16px}.hint{margin-top:20px;padding-top:15px}}
@media(max-width:380px){body{padding:8px}.visual{padding-left:19px;padding-right:19px;height:295px}.hero h1{font-size:21px}.login{padding:25px 19px}.scene-card{font-size:8px}.card-home{left:4%}.card-message{right:4%}}
@media(prefers-reduced-motion:reduce){.resident-scene *{animation:none!important}.btn{transition:none}.btn:hover:not(:disabled){transform:none}}

/* Match the resident panel blue identity. */
:root{--primary:#365fc5;--primary2:#557bde;--bg:#f3f7fc;--text:#233856;--muted:#6a7c98;--border:#dfe7f3}
.visual{background:radial-gradient(ellipse at 70% 35%,#355e9a66,transparent 60%),linear-gradient(145deg,#203e72,#172e54)}
