:root {
  --bg-primary: #000000;
  --bg-overlay: rgba(59, 130, 246, 0.05); /* Match 5% primary tint from app */
  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --primary: #3b82f6; /* App Primary Blue */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-radius: 2rem;
  --accent-glow: radial-gradient(circle at 50% -20%, rgba(59, 130, 246, 0.15), transparent 70%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

.auth-wrapper {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--accent-glow);
}

/* Background Warmth Overlay (Matches Onboarding) */
.auth-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-overlay);
  pointer-events: none;
}

/* Glass Header */
header {
  padding: 2rem;
  margin: 1rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  background: linear-gradient(to right, #fff, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 6rem;
  z-index: 5;
}

/* Screenshot Carousel Section */
.hero-section {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.screenshot-carousel {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  padding: 1rem;
  overflow-x: auto;
  width: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.screenshot-carousel::-webkit-scrollbar {
  display: none;
}

.screenshot-card {
  flex: 0 0 auto;
  width: 100%;
  max-width: 320px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 2rem;
}

.device-frame {
  width: 280px;
  aspect-ratio: 9/19.5;
  background: #111;
  border-radius: 2.5rem;
  border: 12px solid #1a1a1a;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.1);
  margin-bottom: 2rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.screenshot-card:hover .device-frame {
  transform: scale(1.05) translateY(-5px);
}

.device-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-info {
  text-align: center;
}

.card-info h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(to bottom, #fff, rgba(255,255,255,0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-info p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 260px;
}

/* Auth / CTAs */
.cta-container {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  height: 4.5rem;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: var(--glass-bg);
  color: #fff;
  border-color: var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.support-section {
  padding: 4rem 2rem;
  background: rgba(255,255,255,0.02);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid var(--glass-border);
}

.support-card {
  max-width: 600px;
  text-align: center;
}

.support-card h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: left;
}

.support-item label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.support-item p, .support-item a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

footer {
  padding: 4rem 2rem;
  text-align: center;
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
  font-weight: 500;
}

@media (min-width: 1024px) {
  .hero-section {
    padding-top: 4rem;
  }
  
  .screenshot-carousel {
    justify-content: center;
    overflow-x: visible;
    flex-wrap: wrap;
    gap: 3rem;
  }
  
  .screenshot-card {
    scroll-snap-align: none;
  }
  
  .screenshot-card:nth-child(even) {
    transform: translateY(2rem);
  }
}
