:root { --bg: #eef0f3; --ink: #1f2328; --muted: #6b7280; --line: #d9dde3; --accent: #0b6bcb; --err: #b4232a; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
body { display: flex; align-items: center; justify-content: center; padding: 24px 16px; min-height: 100vh; }
.card { width: 100%; max-width: 380px; background: #fff; border-radius: 16px; padding: 28px 26px 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 12px 32px rgba(0,0,0,.08); }
.logo { font-size: 34px; }
h1 { margin: 6px 0 2px; font-size: 26px; }
.sub { margin: 0 0 18px; color: var(--muted); }
label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 6px; }
input { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11,107,203,.15); }
.pw { position: relative; }
.pw input { padding-right: 70px; }
.pw button { position: absolute; right: 6px; top: 6px; bottom: 6px; border: 0; background: #f2f4f7; border-radius: 8px;
  font: inherit; font-size: 13px; padding: 0 10px; cursor: pointer; color: var(--ink); }
.error { color: var(--err); background: #fdecec; border-radius: 8px; padding: 8px 10px; font-size: 14px; margin: 12px 0 0; }
.error[hidden] { display: none; }
.primary { width: 100%; margin-top: 18px; border: 0; border-radius: 10px; padding: 12px; font: inherit; font-weight: 600;
  background: var(--accent); color: #fff; cursor: pointer; }
.primary:disabled { opacity: .6; cursor: default; }
.foot { margin: 16px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
