/* Page + layout */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1d4ed8 0%, #020617 60%, #000 100%);
  color: #e5e7eb;
  min-height: 100vh;
  overflow: auto; 
}

/* Fullscreen canvas behind everything */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

/* Centered content */
.page-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hero-header {
  text-align: center;
  max-width: 700px;
}

/* Logo intro animation */
.logo-wrapper {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  opacity: 0;
  animation: logoFadeIn 1.2s ease-out 0.2s forwards;
}

.logo {
  max-width: 260px;
  width: 60vw;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.65));
}

/* subtitle fade in after logo */
.headline {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.6s forwards;
}

.subtitle {
  margin: 0 0 24px;
  font-size: 0.98rem;
  color: #cbd5f5;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.8s forwards;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 1s forwards;
}

/* Buttons */
.btn {
  border-radius: 999px;
  padding: 10px 20px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    color 0.18s ease, border-color 0.18s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #3b82f6, #22c55e);
  color: #0b1120;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
}

.btn.primary:hover {
  background: #1d4ed8;         
  color: #e5e7eb;              
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 1);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-2px);
}

/* Animations */
@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Small screens */
@media (max-width: 600px) {
  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    max-width: 260px;
    text-align: center;
  }
}

/* ============================
   2) Rounded, theme-matching inputs
   ============================ */

.signup-form {
  max-width: 420px;
}

/* Labels for form fields */
.label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #e5e7eb;
  margin-bottom: 2px;
}

/* Pill-shaped inputs that match the dark/blue theme */
.input {
  width: 100%;
  border-radius: 999px;                         /* pill shape */
  padding: 10px 16px;
  border: 1px solid rgba(148, 163, 184, 0.7);   /* slate border */
  background: rgba(15, 23, 42, 0.85);           /* dark/navy glass */
  color: #e5e7eb;
  font-size: 0.95rem;
  outline: none;
  margin-top: 2px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.8);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

/* Glow + slight lift on focus */
.input:focus {
  border-color: #38bdf8;  /* cyan accent */
  background: rgba(15, 23, 42, 0.96);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.5),
    0 16px 34px rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

/* ============================
   3) Fade-in heading for "Create Your Account"
   ============================ */

.page-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 4px;
  color: #f9fafb;
}

/* Reusable fade-in-up animation for titles */
.fade-in-title {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Darker overall products panel */
.products-section {
  background: radial-gradient(circle at top left,
              rgba(15, 23, 42, 0.95),   /* deep navy */
              #020617);                 /* almost black */
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.85);
}

/* Each individual product card */
.products-section .card {
  width: 100%;
  background: radial-gradient(circle at top,
              rgba(37, 99, 235, 0.45),   /* blue glow */
              rgba(15, 23, 42, 0.98));   /* dark base */
  border-radius: 18px;
  padding: 16px 16px 20px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(30, 64, 175, 0.6);
}

/* Optional: keep product text readable on dark cards */
.products-section .card h3,
.products-section .card p {
  color: #e5e7eb;
}
