:root{
  --bg: #0b0c0f;
  --card: #11131a;
  --text: #e8eaf2;
  --muted: #a7adbd;
  --accent: #4f8cff;
  --accent-press: #3b6dd1;
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}

@media (prefers-color-scheme: light) {
  :root{
    --bg: #f6f7fb;
    --card: #ffffff;
    --text: #0e1320;
    --muted: #556070;
    --accent: #2563eb;
    --accent-press: #1e4fb6;
  }
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 20% -10%, color-mix(in srgb, var(--accent) 12%, var(--bg)) 0%, var(--bg) 60%),
              radial-gradient(1000px 700px at 120% 120%, color-mix(in srgb, var(--accent) 12%, var(--bg)) 0%, var(--bg) 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 560px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px color-mix(in srgb, #000 40%, transparent);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  letter-spacing: -0.02em;
}

.label {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

input[type="text"] {
  width: 100%;
  font-size: 1rem;
  color: var(--text);
  background: color-mix(in srgb, var(--card) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input::placeholder {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

input:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--ring);
  background: color-mix(in srgb, var(--card) 92%, transparent);
}

.btn {
  margin-top: 14px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-press));
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform .06s ease, filter .2s ease, opacity .2s ease;
}

.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px) scale(0.998); }

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.help {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer {
  margin-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
