/* Cuttin Candy Onboarding & Modern Login Styles */

/* Onboarding Container Overlay */
.onboarding-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.onboarding-overlay.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Slider Track */
.onboarding-slider {
  display: flex;
  width: 300%; /* 3 slides */
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Individual Slides */
.onboarding-slide {
  width: 33.333%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  text-align: center;
  background: #ffffff;
  font-family: 'Jost', 'Inter', -apple-system, sans-serif;
  transform: translate3d(0, 0, 0);
}

/* Slide 1 - Crimson Gradient */
.onboarding-slide.slide-1 {
  background: linear-gradient(180deg, #CC2B52 0%, #7C1D34 100%);
  color: #ffffff;
}

/* Background Glowing Blobs */
.bg-decor-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.slide-1 .bg-decor-circle-1 {
  top: -10%;
  right: -25%;
  width: 75%;
  padding-bottom: 75%;
  background: rgba(255, 255, 255, 0.05);
  filter: blur(8px);
}
.slide-1 .bg-decor-circle-2 {
  bottom: 15%;
  left: -20%;
  width: 60%;
  padding-bottom: 60%;
  background: rgba(255, 255, 255, 0.04);
  filter: blur(8px);
}

/* Slide Content Containers */
.slide-content-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(2.5rem + env(safe-area-inset-top, 0px)) 2.5rem 2.5rem 2.5rem;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.slide-content-bottom {
  padding: 2rem 2.5rem calc(3.5rem + env(safe-area-inset-bottom, 0px)) 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  margin: auto auto 0 auto;
}

/* Skip Button */
.onboarding-skip-link {
  position: absolute;
  top: calc(2rem + env(safe-area-inset-top, 0px));
  right: 2rem;
  background: none;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.2s;
}
.slide-1 .onboarding-skip-link {
  color: rgba(255, 255, 255, 0.7);
}
.slide-2 .onboarding-skip-link, 
.slide-3 .onboarding-skip-link {
  color: #9CA3AF;
}
.onboarding-skip-link:hover {
  opacity: 0.8;
}

/* Logo Boxes */
.glass-logo-box {
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
  color: #000000;
}

/* Branding Headings inside onboarding */
.ob-brand-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}
.slide-1 .ob-brand-title {
  color: #ffffff;
}
.ob-brand-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}
.slide-1 .ob-brand-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

/* Badges */
.ob-pill-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  display: inline-block;
}
.slide-1 .ob-pill-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.slide-2 .ob-pill-badge,
.slide-3 .ob-pill-badge {
  background: #FCE7F3;
  color: #9D174D;
}

/* Headings */
.slide-heading {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.slide-1 .slide-heading {
  color: #ffffff;
}
.slide-2 .slide-heading,
.slide-3 .slide-heading {
  color: #111827;
}

/* Description Text */
.slide-description {
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 320px;
  margin: 0 auto;
}
.slide-1 .slide-description {
  color: rgba(255, 255, 255, 0.75);
}
.slide-2 .slide-description,
.slide-3 .slide-description {
  color: #4B5563;
}

/* Buttons */
.ob-btn {
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 36px;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-family: 'Jost', sans-serif;
}
.ob-btn:active {
  transform: scale(0.98);
}
.ob-btn-white {
  background: #ffffff;
  color: #CC2B52;
}
.ob-btn-white:hover {
  background: #f9fafb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
.ob-btn-crimson {
  background: #CC2B52;
  color: #ffffff;
}
.ob-btn-crimson:hover {
  background: #a8183a;
  box-shadow: 0 6px 18px rgba(204, 43, 82, 0.25);
}

/* Indicators */
.ob-indicators {
  display: flex;
  gap: 8px;
  margin-bottom: 2rem;
  justify-content: center;
  align-items: center;
}
.ob-indicators .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transition: all 0.3s;
}
.slide-1 .ob-indicators .dot {
  background: rgba(255, 255, 255, 0.3);
}
.slide-1 .ob-indicators .dot.active {
  background: #ffffff;
  width: 24px;
  border-radius: 3px;
}
.slide-2 .ob-indicators .dot {
  background: #E5E7EB;
}
.slide-2 .ob-indicators .dot.active {
  background: #CC2B52;
  width: 24px;
  border-radius: 3px;
}
.slide-3 .ob-indicators .dot {
  background: rgba(255, 255, 255, 0.3);
}
.slide-3 .ob-indicators .dot.active {
  background: #ffffff;
  width: 24px;
  border-radius: 3px;
}

/* Slide 2 Specific styles */
.slide-2-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 32vh;
  background: linear-gradient(180deg, #CC2B52 0%, #9B1239 100%);
  border-radius: 0 0 50% 50% / 0 0 35% 35%;
  z-index: 1;
}

.star-logo-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #FBCFE8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: calc(22vh + env(safe-area-inset-top, 0px));
  margin-bottom: 1.5rem;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.06);
  color: #111827;
}

.features-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 1.8rem 0;
  width: 100%;
  max-width: 320px;
}

.feature-box {
  flex: 1;
  height: 92px;
  border-radius: 18px;
  border: 1px solid rgba(204, 43, 82, 0.12);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(204, 43, 82, 0.02);
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(204, 43, 82, 0.06);
  border-color: rgba(204, 43, 82, 0.25);
}

.feature-box i {
  color: #CC2B52;
  font-size: 1.35rem;
}

.feature-label {
  color: #881337;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Slide 3 Specific styles */
.rocket-logo-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #FCE7F3;
  border: 2px solid #FBCFE8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: calc(10vh + env(safe-area-inset-top, 0px));
  margin-bottom: 1.5rem;
  z-index: 2;
  color: #111827;
}

.slide-3-bottom-card {
  margin-top: auto;
  width: 100%;
  background: linear-gradient(180deg, #CC2B52 0%, #82112C 100%);
  border-radius: 36px 36px 0 0;
  padding: 2.2rem 2rem calc(3.5rem + env(safe-area-inset-bottom, 0px)) 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -8px 32px rgba(204, 43, 82, 0.15);
  box-sizing: border-box;
}

.card-trust-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: 280px;
  font-weight: 400;
}

.pills-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 260px;
  margin-bottom: 1.8rem;
}

.pill-item {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  backdrop-filter: blur(4px);
}

.pill-item i {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.btn-get-started {
  width: 100%;
  max-width: 280px;
  justify-content: center;
}


/* ---------------------------------------------------- */
/* Modern Login Layout (Matching Slide 4) on Mobile/PWA */
/* ---------------------------------------------------- */

@media (max-width: 768px) {
  /* Force overall background gradient on login wrap */
  body.login-page-body {
    background: linear-gradient(180deg, #CC2B52 0%, #82112C 100%) !important;
    min-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    width: 100% !important;
  }
  
  .login-page-body .login-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    background: transparent !important;
    position: relative;
    padding: 0;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Decorative circles on mobile login screen */
  .login-page-body .login-wrap::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -25%;
    width: 70%;
    padding-bottom: 70%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    filter: blur(10px);
    pointer-events: none;
    z-index: 1;
  }
  
  .login-page-body .login-wrap::after {
    content: '';
    position: absolute;
    top: 45%;
    left: -20%;
    width: 55%;
    padding-bottom: 55%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    filter: blur(10px);
    pointer-events: none;
    z-index: 1;
  }

  /* Mobile-only Brand Header block above the login card */
  .mobile-logo-header {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 4.5vh;
    margin-bottom: 3.5vh;
    z-index: 2;
    text-align: center;
    font-family: 'Jost', 'Inter', sans-serif;
  }

  .mobile-logo-header .glass-logo-box {
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .mobile-logo-header .brand-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 0.15rem;
  }

  .mobile-logo-header .brand-subtitle {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
  }

  /* Form Container Panel */
  .login-right {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    flex: 1;
    display: flex;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important; /* Pin card to bottom */
    z-index: 2;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  .login-card {
    background: #ffffff;
    border-radius: 36px 36px 0 0 !important;
    padding: 2.2rem 2rem calc(2rem + env(safe-area-inset-bottom, 0px)) 2rem !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    width: 100%;
    margin: 0 !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  .login-card .login-title {
    font-size: 1.6rem !important;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.3rem !important;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Jost', sans-serif;
  }
  
  .login-card .login-title span.wave-icon {
    font-size: 1.5rem;
    animation: wave-animation 2.5s infinite;
    transform-origin: 70% 70%;
    display: inline-block;
  }

  .login-card .login-sub {
    font-size: 0.85rem !important;
    color: #6B7280 !important;
    margin-bottom: 1.8rem !important;
  }

  /* Input fields tweaks on mobile */
  .login-card .form-label {
    font-size: 0.72rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #4B5563 !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
    font-family: 'Jost', 'Inter', sans-serif;
  }

  .login-card .input-group {
    background: #FDF2F4 !important;
    border-radius: 16px !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    align-items: center !important;
    transition: all 0.2s;
  }
  
  .login-card .input-group.email-group {
    border: 1px solid #CC2B52 !important;
  }
  
  .login-card .input-group.password-group {
    border: 1px solid rgba(204, 43, 82, 0.15) !important;
  }

  .login-card .input-group:focus-within {
    border-color: #CC2B52 !important;
    box-shadow: 0 0 0 3px rgba(204, 43, 82, 0.1) !important;
  }

  .login-card .input-group-text {
    background: transparent !important;
    border: none !important;
    color: #111827 !important;
    padding: 0 !important;
  }
  
  .login-card .input-group-text.pw-toggle {
    cursor: pointer;
  }

  .login-card .form-control {
    background: transparent !important;
    border: none !important;
    padding: 0.8rem 0.75rem !important;
    font-size: 0.95rem !important;
    color: #111827 !important;
    box-shadow: none !important;
  }
  
  .login-card .form-control::placeholder {
    color: #9CA3AF !important;
  }

  /* Form Link */
  .forgot-pwd-link {
    display: block;
    text-align: right;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #A8183A !important;
    margin-top: 0.6rem !important;
    margin-bottom: 1.8rem !important;
    text-decoration: none;
    font-family: 'Jost', sans-serif;
  }
  .forgot-pwd-link:hover {
    color: #660F25 !important;
  }

  /* Button style tweaks */
  .login-card .btn-login {
    background: linear-gradient(135deg, #CC2B52 0%, #82112C 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0.9rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 24px rgba(204, 43, 82, 0.3) !important;
    width: 100% !important;
    font-family: 'Jost', sans-serif;
    color: #ffffff !important;
  }
  
  .login-card .btn-login:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 28px rgba(204, 43, 82, 0.4) !important;
  }

  /* Footer outside the card or inside card */
  .login-card .login-footer {
    font-size: 0.72rem !important;
    color: #9CA3AF !important;
    text-align: center;
    margin-top: 2rem !important;
    margin-bottom: 0 !important;
    font-family: 'Inter', sans-serif;
  }
  
  /* Below-card copyright info matching layout */
  .mobile-bottom-copyright {
    display: block !important;
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px)) 0 !important;
    width: 100%;
    z-index: 3;
    font-family: 'Inter', sans-serif;
  }
}

/* Fallback hiding for mobile elements on desktop */
@media (min-width: 769px) {
  .mobile-logo-header, 
  .mobile-bottom-copyright,
  .forgot-pwd-link {
    display: none !important;
  }
}

/* Waving Hand Keyframes */
@keyframes wave-animation {
  0% { transform: rotate( 0.0deg) }
  10% { transform: rotate(14.0deg) }
  20% { transform: rotate(-8.0deg) }
  30% { transform: rotate(14.0deg) }
  40% { transform: rotate(-4.0deg) }
  50% { transform: rotate(10.0deg) }
  60% { transform: rotate( 0.0deg) }
  100% { transform: rotate( 0.0deg) }
}
