:root {
  --bg: #0a0b0f;
  --card: #12141b;
  --line: #262a35;
  --text: #eef1f6;
  --muted: #98a0b3;
  --accent: #6ea8fe;
  --accent2: #b78cff;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 70vh;
  background:
    radial-gradient(46% 60% at 22% 18%, rgba(110, 168, 254, .22), transparent 70%),
    radial-gradient(42% 58% at 78% 8%, rgba(183, 140, 255, .18), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

.gate {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(410px, 100%);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 22px;
  letter-spacing: -.01em;
}

.brand span {
  background: linear-gradient(100deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 {
  margin: 0 0 6px;
  font-size: 25px;
  letter-spacing: -.03em;
}

.muted { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.55; }

.field {
  width: 100%;
  height: 48px;
  margin-bottom: 11px;
  padding: 0 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b0d13;
  color: var(--text);
  font-size: 15px;
  outline: 0;
  transition: border-color .16s, box-shadow .16s;
}

.field:focus {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  box-shadow: 0 0 0 4px rgba(110, 168, 254, .16);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  color: #08090d;
  background: linear-gradient(100deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 28px rgba(110, 168, 254, .28);
  text-decoration: none;
}

.btn:active { transform: scale(.99); }

a.btn { color: #08090d; }

.hint {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.hint code {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 7px;
  background: #0b0d13;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12.5px;
  letter-spacing: .04em;
}

.err { min-height: 18px; margin: 10px 0 0; color: #ff8383; font-size: 13px; }
