:root { --bg: #0e1116; --panel: #151a21; --line: #262e39; --text: #e8ecf1; --muted: #8b97a6; --red: #d50032; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
.card { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; }
.logo { font-weight: 700; letter-spacing: .16em; font-size: 18px; }
.logo span { color: var(--red); }
.sub { color: var(--muted); margin: 6px 0 20px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
input { width: 100%; font: inherit; color: var(--text); background: #0e1116; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
input:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.pw { position: relative; }
.pw input { padding-right: 70px; }
.ghost { position: absolute; right: 6px; top: 6px; bottom: 6px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; padding: 0 10px; cursor: pointer; }
.primary { width: 100%; margin-top: 20px; background: var(--red); color: #fff; border: 0; border-radius: 10px; padding: 13px; font: inherit; font-weight: 650; cursor: pointer; }
.primary:disabled { opacity: .6; }
.msg { min-height: 20px; margin-top: 12px; color: #ff8a9d; font-size: 14px; }
.fine { color: #5d6877; font-size: 12px; margin: 20px 0 0; }
