/* =========================
   PAGE: WAITLIST
========================= */

body {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: right;

  padding: 20px;

  background: linear-gradient(135deg, #f8f8f5, #D7F2BA);
  color: #2b2b2b;

  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

/* =========================
   WAITLIST LAYOUT
========================= */

.page-waitlist {
  width: 100%;
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;

  padding: 20px 40px;
}

/* =========================
   LEFT SIDE
========================= */

.left-side {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.waitlist-page-image {
  display: flex;
  align-items: center;
}

.waitlist-page-image img {
  width: 100%;
  max-width: 430px;

  display: block;
}

.quote {
  margin-top: -5px;
  text-align: center;
}

.quote p {
  color: #676F54;

  font-family: "Belleza", sans-serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.4;
}

.quote span {
  display: block;

  margin-top: 10px;

  color: #8A8A8A;

  font-size: 15px;
  letter-spacing: 1px;
}

/* =========================
   WAITLIST CONTAINER
========================= */

.waitlist-container {
  width: 100%;
  max-width: 420px;
}

/* =========================
   LOGO
========================= */

.waitlist-logo {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin-bottom: 28px;
}

.waitlist-logo h1 {
  margin: 0;

  color: #79B4A9;

  font-family: "Belleza", sans-serif;
  font-size: 58px;
  font-weight: 400;
  letter-spacing: 6px;
  line-height: 1;
}

.waitlist-logo .logo-line {
  width: 140px;
  height: 4px;

  margin-top: 10px;

  background: #D4AF37;
  border-radius: 999px;
}

/* =========================
   WAITLIST CARD
========================= */

.waitlist-card {
  width: 100%;
  max-width: 480px;
  padding: 32px;

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

  border: 1px solid rgba(103, 111, 84, 0.15);
  border-radius: 28px;

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);

  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* =========================
   WAITLIST HEADER
========================= */

.waitlist-header {
  margin-bottom: 32px;
  text-align: center;
}

.waitlist-header h2 {
  margin-bottom: 10px;

  color: #676F54;

  font-family: "Belleza", sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 2px;
}

.waitlist-header p {
  color: #4f5f57;
  font-size: 0.95rem;
}

/* =========================
   WAITLIST BUTTON
========================= */

.waitlist-btn {
  width: 100%;

  margin-bottom: 24px;
  padding: 15px 24px;

  position: relative;

  border: none;
  border-radius: 999px;

  background: #676F54;
  color: #ffffff;

  font-size: 16px;
  font-weight: 700;

  cursor: pointer;
  transition: 0.25s ease;
}

.waitlist-btn:hover {
  background: #79B4A9;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(121, 180, 169, 0.3);
}

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

.waitlist-btn.loading {
  pointer-events: none;
  background: #9CC69B;
}

.waitlist-btn.loading .btn-text {
  opacity: 0;
}

.waitlist-btn.loading .btn-loader {
  opacity: 1;
}

/* =========================
   SUCCESS LINK
========================= */

.success-link {
  display: inline-block;

  margin-top: 24px;
  padding: 14px 28px;

  background: #6F765A;
  color: #ffffff;

  border-radius: 999px;

  font-weight: 600;
  text-decoration: none;

  transition: 0.3s ease;
}

.success-link:hover {
  background: #7FB3A8;
  transform: translateY(-2px);
}

/* =========================
   EXTRA ERROR / SHAKE
========================= */

.form-group.shake {
  animation: shake 0.35s ease;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-6px);
  }

  50% {
    transform: translateX(6px);
  }

  75% {
    transform: translateX(-4px);
  }

  100% {
    transform: translateX(0);
  }
}

/* =========================
   ACCESSIBILITY
========================= */

:focus-visible {
  outline: 2px solid #79B4A9;
  outline-offset: 3px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  html,
  body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    display: block;
    padding: 0;
  }

  .back-button {
    position: relative;
    top: auto;
    left: auto;

    display: inline-flex;

    margin: 18px 0 0 18px;
  }

  .page-waitlist {
    min-height: auto;

    flex-direction: column;
    gap: 18px;

    padding: 20px 16px 40px;
  }

  .left-side {
    width: 100%;
    order: 1;
  }

  .waitlist-page-image img {
    max-width: 220px;
    margin: 0 auto;
  }

  .quote {
    margin-top: 8px;
    padding: 0 12px;
  }

  .quote p {
    font-size: 17px;
  }

  .quote span {
    font-size: 12px;
  }

  .waitlist-container {
    width: 100%;
    max-width: 100%;
    order: 2;
  }

  .waitlist-card {
    width: 100%;
    padding: 26px 20px;
    border-radius: 24px;
  }

  .waitlist-logo {
    margin-bottom: 22px;
  }

  .waitlist-logo h1 {
    font-size: 42px;
    letter-spacing: 4px;
  }

  .waitlist-logo .logo-line {
    width: 110px;
    height: 3px;
  }

  .waitlist-header {
    margin-bottom: 24px;
  }

  .waitlist-header h2 {
    font-size: 1.55rem;
    line-height: 1.25;
  }

  .waitlist-header p {
    font-size: 0.9rem;
  }

  .waitlist-btn {
    min-height: 48px;
    padding: 14px 18px;
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  .page-waitlist {
    padding: 16px 12px 32px;
  }

  .waitlist-page-image img {
    max-width: 190px;
  }

  .waitlist-card {
    padding: 22px 16px;
  }

  .waitlist-logo h1 {
    font-size: 36px;
  }

  .waitlist-header h2 {
    font-size: 1.35rem;
  }
}