:root {color-scheme:light;--ink:#191b2a;--muted:#626d82;--brand:#4938c9;--line:#e1e4ef;--canvas:#f5f6fb}
* {box-sizing:border-box}
body {margin:0;background:var(--canvas);color:var(--ink);font:14px/1.5 "Segoe UI",system-ui,sans-serif;min-height:100dvh}
button,input {font:inherit}
button {cursor:pointer}
svg {stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.login-shell {min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 24px}
.brand {display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font-size:18px;font-weight:750;margin-bottom:36px;letter-spacing:-.5px}
.brand-mark {display:grid;place-items:center;background:var(--brand);color:#fff;border-radius:12px;width:46px;height:46px}
.brand-mark svg {width:30px;height:30px}
.login-card {background:#fff;border:1px solid var(--line);border-radius:20px;padding:40px;width:100%;max-width:440px;box-shadow:0 12px 40px #2d284308}
.workspace-mark {width:48px;height:48px;display:grid;place-items:center;color:var(--brand);background:#eeebff;border-radius:13px;margin-bottom:24px}
.workspace-mark svg {width:25px;height:25px}
.eyebrow {font-size:10px;letter-spacing:1.4px;font-weight:750;color:var(--muted);margin:0 0 8px}
h1 {font-size:28px;line-height:1.2;letter-spacing:-.8px;margin:0 0 12px;font-weight:750}
.intro {color:var(--muted);font-size:13px;line-height:1.7;margin:0 0 30px}
form {display:grid;gap:9px}
label {font-size:12px;font-weight:650}
input {width:100%;height:48px;border:1px solid #d6daea;background:#fff;border-radius:9px;padding:0 14px;color:var(--ink);outline:none;font-size:14px;transition:border-color .15s,box-shadow .15s}
input::placeholder {color:#8790a3}
input:focus {border-color:#7465dc;box-shadow:0 0 0 3px #4938c910}
#username {margin-bottom:11px}
.password-field {position:relative}
.password-field input {padding-right:46px}
.reveal {position:absolute;right:5px;top:5px;width:38px;height:38px;border:0;background:none;display:grid;place-items:center;color:var(--muted);border-radius:6px}
.reveal:hover {background:#f5f4fd;color:var(--brand)}
.reveal svg {width:19px;height:19px}
.submit {border:0;color:white;background:var(--brand);border-radius:9px;min-height:48px;display:flex;align-items:center;justify-content:center;gap:12px;font-weight:650;margin-top:14px;transition:background .15s}
.submit:hover {background:#3726ad}
.submit svg {width:18px;height:18px}
.submit:disabled {opacity:.65;cursor:wait}
:focus-visible {outline:2px solid #7465dc;outline-offset:3px}
.error {padding:11px 13px;color:#9c293b;background:#fff0f2;border:1px solid #f4d2d8;border-radius:8px;font-size:12px;line-height:1.6;margin:4px 0 0}
.secure-note {display:flex;align-items:center;justify-content:center;gap:6px;color:var(--muted);font-size:11px;border-top:1px solid var(--line);padding-top:24px;margin-top:28px}
.secure-note svg {width:14px;height:14px}
.login-footer {color:#7b8496;font-size:11px;margin:24px 0 0}
@media(max-width:480px) {.login-shell {padding:28px 18px}.login-card {padding:28px 24px;border-radius:16px}.brand {margin-bottom:28px;font-size:17px}h1 {font-size:26px}.intro {margin-bottom:26px}}
@media(prefers-reduced-motion:reduce) {* {transition:none!important}}
.register-nav {margin:18px 0 0;text-align:center;font-size:14px}
.register-nav a,.registration-card .intro a {color:#4938c9;font-weight:650;text-underline-offset:3px}
.registration-card .intro {margin-bottom:18px}
.registration-card .status-note {font-size:14px;line-height:1.5;background:#f4f2ff;border-radius:8px;padding:10px 12px}
.registration-card form[hidden],.registration-card .status-note[hidden] {display:none}
.registration-card .register-name {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.registration-card small {display:block;margin:7px 0;color:#596377;font-size:12px}
