:root {
  color-scheme: dark;
  --bg: #0d0f13;
  --panel: #161922;
  --panel-2: #1d212c;
  --border: #2a2f3c;
  --text: #e7e9ee;
  --text-dim: #9096a6;
  --accent: #4f8cff;
  --red: #ef4444;
}

* { 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: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.card {
  width: 360px;
  max-width: 90vw;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.card h1 {
  font-size: 18px;
  margin: 0 0 4px;
}

.card p.subtitle {
  color: var(--text-dim);
  font-size: 13px;
  margin: 0 0 22px;
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 11px;
  font-size: 13px;
}
.field input:focus { outline: none; border-color: var(--accent); }

button.btn-primary {
  width: 100%;
  background: var(--accent);
  border: none;
  color: white;
  border-radius: 8px;
  padding: 11px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
}
button.btn-primary:hover { background: #3d7bff; }
button.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.form-msg {
  font-size: 12px;
  margin-top: 12px;
  min-height: 16px;
  color: var(--red);
}
