:root{--bg:#f6f5f2;--panel:#fff;--ink:#1d1d1f;--mute:#6b6b70;--line:#dcdad4;--accent:#8b5cf6;--err:#d93636;--ok:#1f9d55}
@media (prefers-color-scheme:dark){:root{--bg:#151517;--panel:#212124;--ink:#ececef;--mute:#9a9aa2;--line:#38383d}}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;display:grid;place-items:center;background:var(--bg);color:var(--ink);font:15px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;padding:16px}
.box{width:100%;max-width:380px;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:24px}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:17px;margin-bottom:6px}
h1{font-size:20px;margin:8px 0 16px}
label{display:block;font-weight:600;font-size:13.5px;margin:12px 0 4px}
input[type=text],input[type=email],input[type=password]{width:100%;font:inherit;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:10px 12px}
input:focus{outline:2px solid var(--accent);outline-offset:1px}
.pw{position:relative}.pw input{padding-right:46px}
.eye{position:absolute;right:4px;top:50%;transform:translateY(-50%);border:0;background:none;color:var(--mute);padding:8px;cursor:pointer;border-radius:7px}
.eye[aria-pressed=true]{color:var(--accent)}
.row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0}
.chk{display:flex;align-items:center;gap:7px;font-weight:500;margin:0}
.chk input{width:18px;height:18px}
button.go{width:100%;font:inherit;font-weight:700;color:#fff;background:var(--ink);border:0;border-radius:9px;padding:11px;cursor:pointer;margin-top:8px}
@media (prefers-color-scheme:dark){button.go{background:var(--accent)}}
a{color:var(--accent)}
.msg{padding:9px 12px;border-radius:8px;font-size:14px}
.msg.err{background:rgba(217,54,54,.12);color:var(--err)}
.msg.ok{background:rgba(31,157,85,.12);color:var(--ok)}
.hint{color:var(--mute);font-size:13px}
