/* ===== RESET & ROOT VARIABLES ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-main: #09090b;
  --card-bg: rgba(10, 11, 18, 0.92);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --brand: #6366f1;
  --brand-hover: #4f46e5;
  --brand-glow: rgba(99, 102, 241, 0.35);
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Background Atmosphere (1:1 with AuthScreen.tsx) */
.auth-bg {
  position: fixed;
  inset: 0;
  background-color: #09090b;
  z-index: -2;
  pointer-events: none;
}

.orb-top {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
}

.orb-bottom {
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
}

/* Auth Card Center */
.auth-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;
  background: var(--card-bg);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: cardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Logo Box */
.logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.15));
}

.brand-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
  max-width: 320px;
}

/* Download Section */
.download-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn-download-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  background: var(--brand);
  color: #ffffff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 24px var(--brand-glow), 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-download-primary svg {
  width: 18px;
  height: 18px;
}

.btn-download-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(99, 102, 241, 0.5), 0 12px 24px rgba(0, 0, 0, 0.4);
}

.btn-download-primary:active {
  transform: translateY(0);
}

.download-secondary-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-msi {
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}

.link-msi:hover {
  color: #ffffff;
}

.specs-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-top: 4px;
}

/* Card Footer */
.card-footer {
  width: 100%;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
}

.footer-link {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--brand);
}
