:root { --bg: #f6f7fb; --surface: #fff; --line: #e3e6ef; --text: #12131a; --muted: #6b7086; --accent: #e11d48; --accent-dark: #be123c;
        --bad: #dc2626; --bad-soft: #fee2e2; --good: #15803d; --good-soft: #dcfce7; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1117; --surface: #171a23; --line: #2a2f3e; --text: #eef0f6; --muted: #8b90a5; --accent: #fb3b64;
          --bad: #f87171; --bad-soft: #351719; --good: #4ade80; --good-soft: #13291c; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--bg); color: var(--text);
       font: 500 15px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.box { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px;
       box-shadow: 0 2px 6px rgba(18,19,26,.06), 0 18px 48px rgba(18,19,26,.12); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.02em; }
.brand i { width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 16px; }
.brand span { color: var(--accent); }
p { color: var(--muted); margin: 0 0 20px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; margin-bottom: 14px; }
label small { font-weight: 500; color: var(--muted); }
input[type=text], input[type=password] { height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 14px; font: inherit; color: inherit; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(225,29,72,.3); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
button { width: 100%; height: 48px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: inherit; font-weight: 800; cursor: pointer;
         box-shadow: 0 4px 14px rgba(225,29,72,.3); margin-top: 4px; }
button:hover { background: var(--accent-dark); }
button[disabled] { opacity: .6; cursor: wait; }
.msg { min-height: 22px; margin-top: 12px; font-weight: 600; font-size: 13.5px; }
.msg.bad { color: var(--bad); } .msg.good { color: var(--good); }
