:root {
  --bg: #0f1419;
  --bg-elevated: #1a222c;
  --bg-input: #12181f;
  --border: #2a3544;
  --text: #e8eef4;
  --text-muted: #8b9aab;
  --accent: #2f6fed;
  --accent-hover: #4580f5;
  --accent-soft: #a8c4f0;
  --fail: #e85d5d;
  --fail-bg: rgba(232, 93, 93, 0.12);
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(47, 111, 237, 0.18), transparent),
    var(--bg);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 10px;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.lead {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

label {
  display: block;
  margin-bottom: 14px;
}

label span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  font: inherit;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
}

input:focus {
  border-color: #3d8bfd;
  box-shadow: 0 0 0 3px rgba(61, 139, 253, 0.2);
}

button {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
}

button:hover:not(:disabled) { background: var(--accent-hover); }
button:disabled { opacity: 0.55; cursor: not-allowed; }

.error {
  margin: 4px 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--fail);
  background: var(--fail-bg);
  border: 1px solid rgba(232, 93, 93, 0.3);
  font-size: 0.85rem;
}
