:root {
  --bg: #1c2227;
  --card: #252b31;
  --border: #3a424a;
  --input: #2e353c;
  --text: #e6e8ea;
  --text-muted: #9aa4ad;
  --accent: #2d7ff9;
  --accent-hover: #1f6fe0;
  --error: #e74c3c;
  --success: #2ecc71;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.card {
  width: 100%;
  max-width: 400px;
  margin: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
}
h1 { font-size: 1.35rem; margin: 0 0 4px; }
.subtitle { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 24px; }
label { display: block; font-size: 0.85rem; margin: 14px 0 6px; color: var(--text-muted); }
input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}
input[type="password"]:focus { border-color: var(--accent); }
button {
  width: 100%;
  margin-top: 22px;
  padding: 11px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
button:hover:not(:disabled) { background: var(--accent-hover); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.msg { margin-top: 16px; font-size: 0.88rem; min-height: 1.2em; }
.msg.error { color: var(--error); }
.msg.success { color: var(--success); }
.hidden { display: none; }
.logo {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 18px; color: #fff;
}
