*{box-sizing:border-box}html{color-scheme:light}body{margin:0;font-family:'Segoe UI',Arial,sans-serif;-webkit-font-smoothing:antialiased;color:var(--text,#292d32);background:var(--bg,#f4f3ef)}button,input{font:inherit}button,input,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid var(--focus,#b94f13);outline-offset:4px}h1,p{margin:0}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.brand{display:flex;align-items:center;gap:10px;font-weight:750;font-size:24px;letter-spacing:-.8px}.brand-mark{width:36px;height:39px;border-radius:10px;background:#ed7b2c;color:#1c2024;display:grid;place-items:center}.brand-mark svg{width:22px;height:22px}.brand-name em{font-style:normal;color:var(--brand,#c65a0d)}.login-layout{min-height:100vh;min-height:100dvh;display:grid;place-items:center;position:relative;overflow:hidden;padding:64px 24px}.login-card{position:relative;z-index:1;width:100%;max-width:420px;padding:40px;background:var(--surface,#fff);border:1px solid var(--border,#dedfd9);border-radius:20px;box-shadow:0 20px 70px #2630250a}h1{font-size:25px;font-weight:600;letter-spacing:-.7px;margin:36px 0 27px}.field{margin-bottom:22px}.field label{display:block;font-size:13px;font-weight:600;margin-bottom:9px}.input-wrap{display:flex;align-items:center;gap:12px;padding:0 14px;border:1px solid var(--input-border,#d9dcd6);border-radius:9px;background:var(--input,#fafbf9);color:var(--muted,#69706a);transition:border-color .15s,box-shadow .15s}.input-wrap:focus-within{border-color:var(--focus,#bd4c0c);box-shadow:0 0 0 3px var(--ring,#fce8dc)}input{height:54px;width:100%;min-width:0;background:transparent;color:var(--text,#292d32);border:0;outline:0;font-size:16px}input::placeholder{font-size:14px;color:var(--placeholder,#848a83)}.reveal{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;margin-right:-9px;border:0;background:transparent;color:inherit}.submit{min-height:54px;display:flex;align-items:center;justify-content:center;gap:16px;width:100%;margin-top:28px;border:0;border-radius:9px;background:var(--button,#ed7b2c);color:var(--button-text,#231a12);font-weight:650;font-size:14px;transition:filter .15s}.submit:hover{filter:brightness(1.08)}.caps{font-size:12px;color:var(--muted,#69706a);margin-top:8px}.feedback{font-size:13px;line-height:1.5;margin-top:16px;padding:12px;border:1px solid var(--border,#dedfd9);border-radius:8px}.feedback:empty{display:none}
.circuit{position:absolute;inset:0;overflow:hidden;pointer-events:none}.circuit>svg{width:100%;height:100%;stroke-width:1.2;stroke-linecap:round}.trace{stroke:#c8c9bc}.packet{stroke:#e08038;stroke-width:2.8;stroke-dasharray:18 700;animation:packet-flow 7s linear infinite}.packet-1{animation-delay:-1.7s}.packet-2{animation-delay:-3.4s}.packet-3{animation-delay:-5.1s}.nodes{fill:#ed7b2c;stroke:#f4f3ef;stroke-width:3;animation:node-glow 4s ease-in-out infinite}.horizonte .login-card{box-shadow:0 20px 70px #26302510}.horizonte .brand-mark svg{animation:play-glow 4s ease-in-out infinite}
@keyframes packet-flow{from{stroke-dashoffset:718}to{stroke-dashoffset:0}}@keyframes node-glow{0%,100%{opacity:.4}50%{opacity:1}}@keyframes play-glow{0%,100%{opacity:.65;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}
@keyframes chip-data{from{stroke-dashoffset:157}to{stroke-dashoffset:0}}
.horizonte{color-scheme:dark;--bg:#0e1218;--surface:#191f28;--text:#eff2f6;--muted:#aab4c2;--border:#343e4d;--input-border:#414e60;--input:#121923;--placeholder:#9daabd;--button:#ee8a40;--button-text:#21180f;--brand:#f3a163;--focus:#f4a66c;--ring:#f49a5526}
.horizonte .login-layout{background:radial-gradient(ellipse at 50% 45%,#e9852d08,transparent 65%)}
.horizonte .login-card{box-shadow:0 24px 80px #0005}
.horizonte .trace{stroke:#303e4f}.horizonte .packet{stroke:#f29a57}.horizonte .nodes{fill:#f4a063;stroke:#0e1218}
.horizonte .brand-mark{background:#ee8a4022;color:#ffaf70;border:1px solid #9b643c}
.horizonte .chip-traces{stroke:#4a5a6c}.horizonte .chip-packets{stroke:#ffa96a}.horizonte .chip-body{fill:#29313b;stroke:#df8a4e}.horizonte .chip-play{fill:#f4a063;stroke:#ffbf8e}.horizonte .chip-nodes{fill:#f4a063}
.mobile-visual{display:none}
.chip-traces{stroke:#4a5a6c}.chip-packets{stroke:#ffa96a;stroke-width:2.8;stroke-dasharray:12 145;animation:chip-data 2.8s linear infinite}
.chip-body{fill:#29313b;stroke:#df8a4e}.chip-play{fill:#f4a063;stroke:#ffbf8e;animation:node-glow 2.5s ease-in-out infinite}.chip-nodes{fill:#f4a063;stroke:none;animation:node-glow 2.5s ease-in-out infinite}
.horizonte .login-card:before{content:'';position:absolute;width:52px;height:4px;background:#ed7b2c;top:-1px;left:40px;border-radius:0 0 4px 4px}
.motion-toggle{position:fixed;right:20px;bottom:20px;z-index:4;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--muted)}
.resume-symbol{display:none}.motion-paused .pause-symbol{display:none}.motion-paused .resume-symbol{display:block}
.motion-paused *,.motion-paused *:before,.motion-paused *:after,.tab-inactive *{animation-play-state:paused!important}
.message{font-size:13px;line-height:1.6;border:1px solid;padding:12px 14px;border-radius:8px;margin:0 0 20px;overflow-wrap:anywhere}
.message-error{color:#ffcbce;background:#411f2a;border-color:#97515b}.message-warning{color:#ffe0b0;background:#392b1e;border-color:#94652e}.message-success{color:#b8ebcf;background:#18352b;border-color:#39725c}
@media(max-width:800px){
 .login-layout{padding:75px 24px}.login-card{max-width:380px;padding:24px 27px 34px}.brand{font-size:23px}h1{margin-top:28px}
 .horizonte .login-card:before{left:27px}
 .mobile-visual{display:block;width:100%;height:88px;margin:0 auto 24px;overflow:hidden;pointer-events:none}
 .mobile-visual>svg{width:100%;height:84px;stroke-width:1.6}
 .circuit>svg{min-width:700px;position:absolute;left:50%;transform:translateX(-50%);opacity:.8}
 .motion-toggle{right:16px;bottom:16px}
}
@media(max-width:360px){.login-layout{padding:75px 18px}.login-card{padding:24px 22px 30px}.brand{font-size:21px}.input-wrap{gap:9px}.horizonte .login-card:before{left:22px}}
@media(max-width:800px) and (max-height:650px){.mobile-visual{height:68px;margin-bottom:16px}.mobile-visual>svg{height:68px}.login-layout{padding-top:75px;padding-bottom:60px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.packet{stroke-dashoffset:80}.chip-packets{stroke-dashoffset:30}.motion-toggle{display:none}}

.login-logo{display:flex;justify-content:center;align-items:center;width:100%}.login-logo img{display:block;width:290px;max-width:100%;height:auto}

/* The animation occupies only the background and card border. */
.card-outline{display:none}
@media(max-width:800px){
 .login-layout{padding:20px 22px;min-height:100vh;min-height:100dvh}
 .login-card{padding:26px 25px;max-width:370px}
 .login-logo img{width:270px}
 h1{margin:24px 0 22px;font-size:24px}
 .field{margin-bottom:18px}
 .input-wrap input{height:50px}
 .submit{min-height:50px;margin-top:22px}
 .horizonte .login-card:before{display:none}
 .card-outline{display:block;position:absolute;inset:-1px;width:calc(100% + 2px);height:calc(100% + 2px);pointer-events:none;overflow:visible;stroke-linecap:round;z-index:2}
 .card-outline rect{stroke:#f5a267;fill:none;stroke-width:1.5;vector-effect:non-scaling-stroke;stroke-dasharray:10 90;animation:card-signal 7s linear infinite}
 .circuit>svg{opacity:1;min-width:700px}
 .motion-toggle{right:10px;bottom:10px;background:#131a22cc}
}
@media(max-width:800px) and (max-height:650px){
 .login-layout{padding:14px 20px}
 .login-card{padding:20px 23px}
 .login-logo img{width:230px}
 h1{margin:18px 0;font-size:23px}
 .field{margin-bottom:14px}
 .input-wrap input{height:48px}
 .submit{min-height:48px;margin-top:18px}
}
@keyframes card-signal{to{stroke-dashoffset:-100}}
@media(prefers-reduced-motion:reduce){.card-outline rect{animation:none!important;stroke-dashoffset:15}}
