:root {
  color-scheme: dark;
  --bg: #070b12;
  --panel: rgba(18, 26, 40, 0.82);
  --panel-border: rgba(120, 150, 200, 0.18);
  --border: #2d3a4f;
  --text: #e7ecf3;
  --muted: #8b9cb3;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --glow: rgba(59, 130, 246, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.12), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.08), transparent 35%),
    linear-gradient(180deg, rgba(7, 11, 18, 0.15), rgba(7, 11, 18, 0.88));
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.card {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 1.75rem;
  backdrop-filter: blur(14px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 40px var(--glow);
  animation: card-in 0.7s ease-out;
}

.card--narrow { max-width: 460px; }
.card--wide { max-width: 520px; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  border: 1px solid rgba(96, 165, 250, 0.35);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.12), transparent 70%);
  animation: shine 3s linear infinite;
}

@keyframes shine {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

.brand-icon svg { width: 30px; height: 30px; }

.brand-text h1,
.brand-text h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-text .tagline {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (prefers-reduced-motion: reduce) {
  #bg-canvas { display: none; }
  .card { animation: none; }
  .brand-icon::after { animation: none; }
}
