@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
:root{--bg:#f5f8fc;--surface:#fff;--ink:#0a1f3d;--muted:#566b88;--line:#d9e3f0;--accent:#1b5fd6;--accent-dk:#144bb0;--err:#0e2d6b;--err-bg:#e6eefc}
@media (prefers-color-scheme:dark){:root{--bg:#07142a;--surface:#0d1d38;--ink:#e6eefc;--muted:#9db1d0;--line:#22385e;--accent:#4d8ef5;--accent-dk:#2d7ff0;--err:#cfe0ff;--err-bg:#16305a}}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);font:15px/1.5 Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
body{display:flex;align-items:flex-start;justify-content:center;padding:10vh 16px 32px}
.card{width:100%;max-width:400px;background:var(--surface);border:1px solid var(--line);padding:28px 28px 24px}
.brand{display:flex;align-items:center;gap:12px;font-weight:700;font-size:26px;letter-spacing:-.02em;margin-bottom:22px}
.brand-ic{display:block;width:44px;height:44px;flex:none}.brand-ic svg,.brand-ic img{display:block;width:44px;height:44px}
.brand-nm{display:flex;flex-direction:column;line-height:1.1}.brand-hol{font-size:12.5px;font-weight:600;letter-spacing:0;color:var(--muted);margin-top:3px}
.br-draw .br-pen{stroke-dasharray:100;stroke-dashoffset:100;animation:brDraw 1.2s .15s ease-out forwards}
@keyframes brDraw{to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){.br-draw .br-pen{animation:none;stroke-dashoffset:0}}
h1{font-size:22px;margin:0 0 12px;letter-spacing:-.01em}
.lead{color:var(--muted);margin:0 0 16px}
label{display:block;font-weight:600;font-size:13px;margin:0 0 14px}
input{display:block;width:100%;margin-top:6px;padding:10px 12px;font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:0}
input:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}
button.primary{width:100%;padding:11px 14px;font:inherit;font-weight:600;color:#fff;background:var(--accent);border:0;border-radius:0;cursor:pointer}
button.primary:hover{background:var(--accent-dk)}
button.primary:disabled{opacity:.6;cursor:default}
.msg{min-height:0;margin:0 0 12px;font-size:14px}
.msg:empty{display:none}
.msg.err{padding:9px 12px;background:var(--err-bg);color:var(--err);border-left:3px solid var(--accent)}
.msg.ok{padding:9px 12px;background:var(--err-bg);border-left:3px solid var(--accent)}
.hint{color:var(--muted);font-size:13px;margin:-6px 0 14px}
.alt{text-align:center;margin:16px 0 0;font-size:14px}
a{color:var(--accent)}
