/* ==========================================================
   landing.css — Landing / login page styles
   True Jiu Jitsu Online

   Single-screen centered layout. Allows gentle scrolling
   on very short viewports so nothing gets clipped.
   ========================================================== */


/* ==========================
   CHECKOUT BANNER
   Shown when returning from abandoned/cancelled checkout
   ========================== */
.checkout-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--color-dark-gray);
  border-bottom: 1px solid var(--color-mid-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
}

.checkout-banner__text {
  font-size: var(--text-sm);
  color: var(--color-light-gray);
  margin: 0;
  max-width: none;
  text-align: center;
}

.checkout-banner__close {
  background: none;
  border: none;
  color: var(--color-gray);
  cursor: pointer;
  font-size: var(--text-base);
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.checkout-banner__close:hover {
  color: var(--color-white);
}


/* ==========================
   PAGE SHELL
   ========================== */
.landing-body {
  /* Allow scrolling if content is taller than the viewport —
     prevents fields from being clipped on short screens */
  overflow-y: auto;
  min-height: 100vh;
}

/* Gym photo background — fixed so it stays put while scrolling */
.landing-bg {
  position: fixed;
  inset: 0;
  background-image: url('../img/true_jiu_jitsu_gym.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Dark overlay on top of the photo */
.landing-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.88);
}

/* Centers everything vertically and horizontally.
   Uses min-height so it grows naturally on short screens. */
.landing-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-xl);
  gap: var(--space-md);
}


/* ==========================
   LOGO
   ========================== */
.landing-logo {
  display: block;
  flex-shrink: 0;
}

.landing-logo img {
  height: 120px;
  width: auto;
}


/* ==========================
   AUTH CARD
   ========================== */
.auth-card {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid var(--color-mid-gray);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 400px;
  backdrop-filter: blur(12px);
  /* No overflow: hidden — let the card grow to fit its content */
}


/* ==========================
   AUTH TABS
   ========================== */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--color-mid-gray);
}

.auth-tab {
  padding: 12px var(--space-lg);
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray);
  cursor: pointer;
  transition: color var(--transition-fast),
              background var(--transition-fast);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.auth-tab:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.03);
}

.auth-tab--active {
  color: var(--color-white);
  border-bottom-color: var(--color-red);
}


/* ==========================
   AUTH PANELS
   ========================== */
.auth-panel {
  padding: var(--space-lg);
}

.auth-panel--hidden {
  display: none;
}

/* Tighter gap between form fields than the default component spacing */
.auth-panel .form {
  gap: var(--space-md);
}

/* Tighter label/input gap within each field group */
.auth-panel .form__group {
  gap: 4px;
}

/* Slightly smaller inputs to save vertical space */
.auth-panel .form__input {
  padding: 10px 14px;
}


/* ==========================
   FORM EXTRAS
   ========================== */
.auth-error {
  font-size: var(--text-sm);
  color: var(--color-red-accessible);
  /* No min-height — only takes space when there's an actual error */
  margin: 0;
  max-width: none;
}

.auth-forgot {
  display: block;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-gray);
  margin-top: var(--space-sm);
  transition: color var(--transition-fast);
}

.auth-forgot:hover {
  color: var(--color-white);
}

.auth-terms {
  font-size: var(--text-xs);
  color: var(--color-gray);
  text-align: center;
  margin-top: var(--space-sm);
  line-height: 1.5;
  max-width: none;
}

.auth-terms a {
  color: var(--color-gray);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-terms a:hover {
  color: var(--color-white);
}


/* ==========================
   PITCH BLOCK
   ========================== */
.landing-pitch {
  text-align: center;
  max-width: 480px;
}

.landing-pitch__headline {
  font-size: var(--text-lg);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white);
  margin-bottom: 4px;
}

.landing-pitch__description {
  font-size: var(--text-sm);
  color: var(--color-gray);
  margin-bottom: 4px;
  max-width: none;
}

.landing-pitch__price {
  font-size: var(--text-sm);
  color: var(--color-gray);
  max-width: none;
}

.landing-pitch__price strong {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.landing-pitch__price strong span {
  font-size: var(--text-sm);
  color: var(--color-gray);
  font-family: var(--font-body);
  font-weight: 400;
}


/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 480px) {

  .landing-main {
    padding: var(--space-xl) var(--space-md);
    justify-content: flex-start;
    padding-top: var(--space-2xl);
  }

  .landing-logo img {
    height: 90px;
  }

}
