.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;

  background: radial-gradient(circle at top right, #6d28d9, #2e1065 70%);

  color: white;

  padding: 2rem 1.5rem;
}

.hero::before {
  content: "";

  position: absolute;

  width: 300px;
  height: 300px;

  right: -100px;
  top: -50px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.04);

  pointer-events: none;
}

/* Parallax background shapes — JS sets translateY on these via
   data-parallax-speed; CSS only handles their static look. */
.hero-parallax-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  will-change: transform;
}

.hero-parallax-shape-1 {
  width: 180px;
  height: 180px;
  background: rgba(192, 132, 252, 0.18);
  top: 15%;
  left: -60px;
}

.hero-parallax-shape-2 {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.1);
  bottom: 10%;
  right: 8%;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;

  margin-bottom: 2rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.55rem 0.9rem;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.12);

  font-size: 0.8rem;

  margin-bottom: 2rem;
}

.live-badge::before {
  content: "";

  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #22c55e;
}

/* Install App button — sits top-right of the hero at every
   screen size (not just desktop), so it needs to live in the
   base styles rather than inside the 900px media query. */
.install-app-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: 0.2s;
}

.install-app-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.install-app-btn[hidden] {
  display: none;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.7rem);

  line-height: 0.95;

  font-weight: 900;

  margin-bottom: 1rem;
}

.hero h1 span {
  color: #c084fc;
}

.hero p {
  font-size: 1rem;

  line-height: 1.8;

  color: rgba(255, 255, 255, 0.85);

  margin-bottom: 2rem;

  max-width: 550px;
}
.hero-actions {
  display: flex;
  flex-direction: column;

  gap: 1rem;

  margin-bottom: 2.5rem;
}

.primary-btn {
  height: 54px;

  border: none;

  border-radius: 14px;

  background: #7c3aed;

  color: white;

  font-weight: 700;

  cursor: pointer;

  transition: 0.25s;
}

.primary-btn:hover {
  transform: translateY(-2px);
}

.secondary-btn {
  height: 54px;

  border-radius: 14px;

  border: 1px solid rgba(255, 255, 255, 0.2);

  background: transparent;

  color: white;

  cursor: pointer;
}

/* =========================
   STATS
========================= */

.stats {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 1rem;
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 1.5rem;
  font-weight: 800;
}

.stat span {
  font-size: 0.8rem;

  color: rgba(255, 255, 255, 0.75);
}
.auth-card {
  background: white;

  padding: 2rem 1.5rem;

  border-radius: 24px 24px 0 0;

  margin-top: -20px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);

  transition: transform 0.15s ease-out;
  will-change: transform;
}

.auth-card h2 {
  font-size: 1.8rem;

  margin-bottom: 0.5rem;
}

.auth-card p {
  color: #6b7280;

  margin-bottom: 1.5rem;
}

/* Subtitle directly under the h2 ("Enter your email and
   password to continue"). Slightly tighter margin than the
   default .auth-card p so it sits close to the heading. */
.auth-subtitle {
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: -0.15rem;
  margin-bottom: 1.75rem;
}

/* =========================
   FORM
========================= */

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;

  margin-bottom: 0.5rem;

  font-size: 0.9rem;

  font-weight: 600;
}

.form-group input {
  width: 100%;

  height: 54px;

  border-radius: 12px;

  border: 1px solid #d1d5db;

  padding: 0 1rem;

  font-size: 16px;
}

.form-group input:focus {
  outline: none;

  border-color: #7c3aed;

  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

/* Icon-adorned inputs (Name / Email / Password fields).
   Wraps the input so an icon can sit inside its left edge
   without changing the input's own base styles above. */
.input-with-icon {
  position: relative;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);

  font-size: 0.95rem;
  opacity: 0.55;

  pointer-events: none;
}

.input-with-icon input {
  padding-left: 2.75rem;
}

.submit-btn {
  width: 100%;

  height: 54px;

  border: none;

  border-radius: 12px;

  background: #7c3aed;

  color: white;

  font-weight: 700;

  cursor: pointer;

  margin-top: 0.5rem;

  transition: 0.2s;
}

.submit-btn:hover {
  background: #6d28d9;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.switch {
  text-align: center;

  margin-top: 1.5rem;

  font-size: 0.95rem;
}

.switch span {
  color: #7c3aed;

  font-weight: 700;

  cursor: pointer;
}

/* =========================
   DESKTOP
========================= */

@media (min-width: 900px) {
  .page {
    flex-direction: row;
  }

  .hero {
    width: 58%;

    padding: 4rem 5rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .auth-card {
    width: 42%;

    border-radius: 0;

    margin-top: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 3rem;
  }

  .hero-actions {
    flex-direction: row;
  }

  .primary-btn,
  .secondary-btn {
    width: 180px;
  }

  .stats {
    max-width: 500px;
  }
}

/* =========================================================
   SCROLL REVEAL
   Base hidden state; JS (IntersectionObserver) adds
   .reveal-visible once an element scrolls into view.
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger the three feature cards slightly so they don't all
   pop in at once. */
.story-feature-card:nth-child(1) {
  transition-delay: 0s;
}
.story-feature-card:nth-child(2) {
  transition-delay: 0.1s;
}
.story-feature-card:nth-child(3) {
  transition-delay: 0.2s;
}

/* =========================================================
   STORY SECTIONS (below the login fold)
========================================================= */
.story-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem;
  background: #faf9ff;
}

.story-parallax-shape {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1), transparent 70%);
  pointer-events: none;
  will-change: transform;
}

.story-content {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
  position: relative;
}

.story-eyebrow {
  display: inline-block;
  color: #7c3aed;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.story-content h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.story-content p {
  color: #6b7280;
  line-height: 1.7;
}

.story-features {
  display: grid;
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.story-feature-card {
  background: white;
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid #ececec;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    box-shadow 0.25s ease;
}

/* Hover-lift only applies on devices that actually support real
   hover (a mouse/trackpad). On touch devices, :hover often gets
   triggered by a tap and then sticks until the user taps
   elsewhere — this avoids that "stuck highlighted" state on
   phones, where most visitors are. */
@media (hover: hover) and (pointer: fine) {
  .story-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(124, 58, 237, 0.12);
  }
}

/* When both the reveal transform and the hover transform want
   to apply, the reveal's translateY(28px) already resolved to
   translateY(0) by the time hover is possible (element must be
   visible/in-view to be hovered), so there's no conflict. */

.story-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ede9fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 1rem;
}

.story-feature-card h3 {
  color: #111827;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.story-feature-card p {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
}

.story-cta {
  padding: 4rem 1.5rem;
  text-align: center;
  background: radial-gradient(circle at bottom left, #6d28d9, #2e1065 70%);
  color: white;
}

.story-cta-content h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.5rem;
}

.story-cta-content p {
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 700px) {
  .story-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   REDUCED MOTION
   Users who've asked their OS/browser to minimize motion get
   the same content with no scroll-reveal delay, no parallax
   drift, and no tilt — everything just appears normally.
========================================================= */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-parallax-shape,
  .story-parallax-shape {
    display: none;
  }

  .auth-card {
    transition: none;
  }
}
.google-btn {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: white;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
  margin-bottom: 1.25rem;
}

.google-btn:hover {
  background: #f9fafb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.google-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: #9ca3af;
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.forgot-password {
  text-align: right;
  margin: 0.5rem 0 0 0;
  font-size: 0.85rem;
}

.forgot-password span {
  color: #7c3aed;
  font-weight: 600;
  cursor: pointer;
}

.forgot-password span:hover {
  text-decoration: underline;
}
