:root {
  color-scheme: dark;
  --bg: #05070e;
  --surface: #0d131f;
  --line: rgba(140, 165, 210, 0.18);
  --text: #eef2f8;
  --muted: #8496ad;
  --accent: #6c8ff2;
  --danger: #ff5d70;
  --font: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(108, 143, 242, 0.14), transparent 55%),
    radial-gradient(700px 420px at 90% 100%, rgba(53, 212, 138, 0.08), transparent 50%),
    var(--bg);
}

.gate {
  width: min(420px, calc(100vw - 2rem));
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
  font-weight: 650;
}

.lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

label[for="code"] {
  margin-top: 0.35rem;
}

input,
.text-input {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a0f19;
  color: var(--text);
  font: inherit;
  margin-bottom: 1rem;
  min-height: 2.9rem;
}

.text-input {
  outline: none;
  white-space: nowrap;
  overflow: hidden;
}

.text-input:empty::before {
  content: attr(data-placeholder);
  color: color-mix(in srgb, var(--muted) 80%, transparent);
}

.text-input:focus,
input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 1px;
}

input::placeholder {
  color: color-mix(in srgb, var(--muted) 80%, transparent);
}

.name-echo {
  margin: -0.35rem 0 1rem;
  color: var(--accent);
  font-size: 0.9rem;
}

.name-echo strong {
  color: var(--text);
  font-weight: 650;
}

button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font: inherit;
  font-weight: 600;
  color: #061018;
  background: var(--accent);
  cursor: pointer;
}

button:hover { filter: brightness(1.06); }

.error {
  margin: 0.9rem 0 0;
  color: var(--danger);
  font-size: 0.9rem;
}
