:root {
  --bg-deep: #050a14;
  --bg-panel: rgba(11, 18, 32, 0.92);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eef8;
  --muted: #8b97b3;
  --muted-soft: #5c677d;
  --accent: #2dd4bf;
  --accent-2: #60a5fa;
  --accent-glow: rgba(45, 212, 191, 0.22);
  --ink: #042f2e;
  --radius: 16px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(45, 212, 191, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 28% at 100% 0%, rgba(96, 165, 250, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 100%, rgba(45, 212, 191, 0.06), transparent 50%),
    linear-gradient(180deg, #050a14 0%, #071024 48%, #050c1a 100%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.04;
  pointer-events: none;
}

.wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  gap: 18px;
}

.card {
  width: min(420px, 100%);
  padding: 36px 32px 28px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  text-align: center;
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px var(--accent-glow);
  background: #071018;
}

.eyebrow {
  margin: 18px 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lede {
  margin: 10px 0 0;
  max-width: 34ch;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.progress {
  margin: 26px 0 22px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px var(--accent-glow);
  transition: width 80ms linear;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font: 700 0.95rem/1 var(--font);
  text-decoration: none;
  color: var(--ink);
  background: var(--accent);
  box-shadow: 0 10px 24px var(--accent-glow);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: #14b8a6;
}

.btn:active {
  transform: translateY(1px);
}

.btn img {
  display: block;
}

.hint {
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: var(--muted-soft);
  font-variant-numeric: tabular-nums;
}

.hint.error {
  color: #fca5a5;
}

.foot {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-soft);
  font-family: var(--mono);
}
