body { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.loginBox { width: 100%; max-width: 380px; padding: 32px 30px; }
.loginBox .logo { margin-bottom: 28px; }
.loginBox h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
.loginBox p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
input[type='password'] {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type='password']:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brandSoft); }
button.primary {
  width: 100%; margin-top: 16px; font: inherit; font-weight: 600; color: #fff; cursor: pointer;
  background: var(--brand); border: 0; border-radius: 10px; padding: 12px; transition: background 0.15s;
}
button.primary:hover { background: var(--brandDark); }
.err { display: none; background: var(--redSoft); color: var(--red); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 16px; }
.err.show { display: block; }
.hint { text-align: center; color: var(--faint); font-size: 13px; margin-top: 16px; }