:root {
  color-scheme: dark;
  --ink: #e8edf5;
  --muted: #93a4b8;
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.06);
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --danger-bg: rgba(248, 113, 113, 0.12);
  --danger-line: rgba(248, 113, 113, 0.35);
  --danger-ink: #fecaca;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: #0b1220;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.blob {
  position: fixed;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
}
.blob--one { top: -18vmax; left: -12vmax; background: radial-gradient(circle, #6366f1, transparent 65%); }
.blob--two { right: -16vmax; bottom: -20vmax; background: radial-gradient(circle, #22d3ee, transparent 65%); }

.card {
  position: relative;
  width: min(100%, 380px);
  padding: 2.25rem 2rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1220;
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.35);
}

h1 {
  margin: 0 0 0.35rem;
  text-align: center;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.sub {
  margin: 0 0 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.field + .field { margin-top: 1rem; }

label {
  display: block;
  margin-bottom: 0.35rem;
  color: #b6c2d2;
  font-size: 0.78rem;
  font-weight: 650;
}

input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font: inherit;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

button {
  width: 100%;
  margin-top: 1.35rem;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08111f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.error {
  margin: 0 0 1.1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--danger-line);
  border-radius: 10px;
  background: var(--danger-bg);
  color: var(--danger-ink);
  font-size: 0.87rem;
}

.note {
  margin: 1.4rem 0 0;
  text-align: center;
  color: #74869c;
  font-size: 0.8rem;
}

.note a { color: #8ab4ff; }

@media (prefers-reduced-motion: no-preference) {
  .blob { animation: drift 22s ease-in-out infinite alternate; }
  button { transition: transform 140ms ease, box-shadow 140ms ease; }
  button:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(99, 102, 241, 0.35); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vmax, 3vmax, 0) scale(1.08); }
}
