:root {
  --bg: #0b0e14;
  --bg2: #10141d;
  --panel: #141926;
  --border: #232b3d;
  --text: #e7eaf2;
  --dim: #8d95aa;
  --accent: #7c9aff;
  --accent-soft: rgba(124, 154, 255, 0.16);
  --bad: #f87171;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 0%, var(--bg2), var(--bg));
  color: var(--text);
  font-family: var(--sans);
}
.card {
  width: 340px;
  max-width: calc(100vw - 40px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
h1 { font-size: 17px; margin: 0 0 4px; }
.subtitle { font-size: 13px; color: var(--dim); margin: 0 0 24px; }
label { display: block; font-size: 12.5px; color: var(--dim); margin: 0 0 6px; }
.field { margin-bottom: 16px; }
input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s ease;
}
input:focus { border-color: var(--accent); }
button {
  width: 100%;
  background: var(--accent);
  color: #0b0e14;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 12px;
  margin-top: 6px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.05s ease;
}
button:hover:not(:disabled) { filter: brightness(1.08); }
button:active:not(:disabled) { transform: scale(0.99); }
button:disabled { cursor: not-allowed; opacity: 0.6; }
.error {
  display: none;
  font-size: 13px;
  color: var(--bad);
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 16px;
}
.error.visible { display: block; }
