/* Exact legacy login visual shell. Appearance only; login.mjs and API untouched. */
:root{color-scheme:light;font:14px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}
body.hq-login-design{margin:0;font:inherit;background:#f7f9fc;color:#233046;min-height:100dvh;display:grid;place-items:center;padding:24px}
.hq-login-design .login{width:min(100%,420px);background:#fff;border:1px solid #e1e9f1;border-radius:22px;padding:32px}
.hq-login-design .login-brand{display:flex;align-items:center;width:182px;height:64px}
.hq-login-design .login-brand img{display:block;width:100%;max-width:100%;height:auto;object-fit:contain}
.hq-login-design .login-brand .logo-dark{display:none}
.hq-login-design .login h1{font-size:26px;line-height:normal;letter-spacing:-.6px;margin:26px 0 8px}
.hq-login-design .login p{color:#617086;line-height:1.5;font-size:14px}
.hq-login-design .login form{display:grid;gap:16px;margin-top:24px}
.hq-login-design .login label{display:grid;gap:7px;font-weight:600;font-size:13px}
.hq-login-design .login input{width:100%;height:46px;min-height:46px;padding:0 12px;border:1px solid #ccd9e4;border-radius:11px;font:inherit;background:#fff;color:#233046}
.hq-login-design .login input:focus{outline:2px solid #025498;outline-offset:2px}
.hq-login-design .login button{height:46px;border-radius:11px;border:0;background:#025498;color:#fff;font:inherit;font-weight:650;cursor:pointer}
.hq-login-design .login button:disabled{opacity:.6;cursor:wait}
.hq-login-design .login .error{color:#b91c1c;margin:0}
.hq-login-design .login .error:empty{display:none}
:root[data-theme="dark"]{color-scheme:dark}
:root[data-theme="dark"] body.hq-login-design{background:#0a1627;color:#e9f2ff}
:root[data-theme="dark"] .login{background:#142840;border-color:#2b415b}
:root[data-theme="dark"] .login p{color:#a8bfd6}
:root[data-theme="dark"] .login label{color:#e9f2ff}
:root[data-theme="dark"] .login input{background:#101f33;border-color:#36516d;color:#edf5ff}
:root[data-theme="dark"] .login input:focus{outline-color:#72b9ff}
:root[data-theme="dark"] .login-brand .logo-light{display:none}
:root[data-theme="dark"] .login-brand .logo-dark{display:block}

.hq-login-design .password-control{display:block;position:relative}
.hq-login-design .password-control input{padding-right:52px}
.hq-login-design .password-control #toggle-password{position:absolute;right:4px;top:4px;width:38px;height:38px;padding:0;display:grid;place-items:center;background:transparent;border:0;color:#59718a;cursor:pointer}
.hq-login-design .password-control #toggle-password:hover{background:#edf3fa}
.hq-login-design .password-control .eye-slash[hidden]{display:none!important}

/* Authentication feedback is informational blue except for real failures. */
.hq-login-design .login-feedback-row{display:flex;align-items:center;gap:9px;min-height:28px}
.hq-login-design .login-feedback-row[hidden],.hq-login-design .login-progress[hidden]{display:none!important}
.hq-login-design .login-progress{flex:none;object-fit:contain}
.hq-login-design .login .feedback{margin:0;color:#075a9c;font-size:13px;font-weight:600;line-height:1.5}
.hq-login-design .login .feedback[data-state="error"]{color:#b91c1c}
:root[data-theme="dark"] .hq-login-design .login .feedback:not([data-state="error"]){color:#8acaff}

/* Native blue indicator shared with dashboard; no GIF asset or black background. */
.hq-login-design .login-progress{flex:none}
.hq-login-design .st-login-spinner{display:inline-block;box-sizing:border-box;width:20px;height:20px;flex:none;border:2.5px solid #d9e9f7;border-top-color:#0865b2;border-right-color:#237ec8;border-radius:50%;animation:st-login-spin .8s linear infinite}
.hq-login-design .st-login-spinner[hidden]{display:none!important}
@keyframes st-login-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.hq-login-design .st-login-spinner{animation:none}}
