/* styles.css - responsive login layout */
.auth-container {
  height: 100vh;
  min-height: 100dvh; /* prefer dynamic viewport unit on modern browsers */
  width: 100%;
  display: flex;
  flex-direction: row;
}

/* Left panel */
.auth-left {
  flex: 1 1 auto;
  width: 50%;
  color: white;
  position: relative;
}
.auth-left .header-section {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  z-index: 1000;
}
.auth-left .slider-section,
.auth-left .slider-item {
  width: 100%;
  height: 100%;
}
.auth-left .slider-item {
  position: relative;
}
.auth-left .slider-item:before {
  content: '';
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at 85% 15%, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 40%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 32%, rgba(0, 0, 0, 0.12) 68%, rgba(0, 0, 0, 0.75) 100%);
  background-blend-mode: normal;
}
.auth-left .slider-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-left .slider-item .content {
  position: absolute;
  left: 40px;
  bottom: 72px;
  right: 40px;
  z-index: 2;
}
.auth-left .slider-item .content .text {
  max-width: 420px;
  line-height: 1.3;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

/* handle animation */
.auth-left .slider-item .content {
  /* hidden by default - will animate in when slide becomes active */
  opacity: 0;
  transform: translateY(12px);
  will-change: transform, opacity;
}
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.auth-left .slider-item .content.animate-in {
  animation: slideUpFade 700ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

/* fallback: ensure active slide content shows if JS doesn't run yet */
.swiper-slide-active .content {
  opacity: 1;
  transform: translateY(0);
}

/* custom styles for dots */
.swiper-slide .content .dots {
  margin-top: 18px;
}
.swiper-pagination {
  position: absolute;
  left: 40px;
  bottom: 24px;
  z-index: 5;
  display: flex;
  gap: 8px;
}
.swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}
.swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  width: 34px;
  height: 8px;
  border-radius: 6px;
  background: #fff;
  opacity: 1;
}

/* Right panel */
.auth-right {
  width: 50%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  position: relative;
}
.auth-right:before {
  /* orange glow at bottom */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(255, 110, 20, 0.08) 40%, rgba(255, 60, 10, 0.18) 100%);
  pointer-events: none;
  z-index: 1;
}
.auth-right .image-bg {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  z-index: 0;
}
.auth-right .image-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-right .header-section {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
}
.auth-right .footer-section {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  margin-top: 18px;
  color: var(--color-text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-right .footer-section a {
  color: var(--color-text-secondary);
}
.auth-right .footer-section .copyright {
  opacity: 0.7;
}
.auth-right .form-panel {
  width: 100%;
  max-width: 420px;
  background: var(--bg-linear);
  padding: 36px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  position: relative;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* form animations */
.auth-right .form-panel {
  animation: slideDownFade 700ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

/* responsive adjustments */
.auth-container:has(.sm) .auth-right .form-panel {
  max-width: 600px;
}
.auth-container:has(.md) .auth-right .form-panel {
  max-width: 900px;
}
.auth-container:has(.lg) .auth-right .form-panel {
  max-width: 1200px;
}
.auth-container:has(.xl) .auth-right .form-panel {
  max-width: 1536px;
}
.auth-container:has(.size-300) .auth-right .form-panel {
  max-width: 300px;
}
.auth-container:has(.size-400) .auth-right .form-panel {
  max-width: 400px;
}
.auth-container:has(.size-500) .auth-right .form-panel {
  max-width: 500px;
}
.auth-container:has(.size-600) .auth-right .form-panel {
  max-width: 600px;
}
.auth-container:has(.size-700) .auth-right .form-panel {
  max-width: 700px;
}
.auth-container:has(.size-800) .auth-right .form-panel {
  max-width: 800px;
}
.auth-container:has(.size-900) .auth-right .form-panel {
  max-width: 900px;
}
.auth-container:has(.size-1000) .auth-right .form-panel {
  max-width: 1000px;
}

/* responsive adjustments */
@media (max-width: 768px) {
  .auth-left {
    display: none;
  }
  .auth-right {
    width: 100%;
  }
  .auth-right .footer-section {
    align-items: center;
  }
  .btn-back-link {
    display: none;
  }
  .auth-right .form-panel {
    margin-bottom: -24px;
  }
  .auth-container .auth-right .form-panel {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
  }
  .auth-container:has(.auth-sign-up) .auth-right .form-panel form > div {
    flex-direction: column;
    gap: 12px;
  }
}

/* mobile landscape (small height) — hidden left panel, form takes full width and scrolls */
@media (orientation: landscape) and (max-width: 1024px), (max-height: 520px) {
  .auth-left {
    display: none;
  }
  .auth-right {
    width: 100%;
    padding: 20px;
  }
  /* allow the right panel to scroll when height is constrained */
  .auth-right .form-panel {
    max-height: calc(100vh - 150px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: -36px;
  }
  .btn-back-link {
    display: none;
  }
  .auth-right .footer-section {
    bottom: 6px;
  }
}
@media (max-height: 420px) {
  .auth-right {
    padding: 12px;
  }
  .auth-right .form-panel {
    padding: 16px;
  }
  .auth-left .slider-item .content {
    left: 16px;
    right: 16px;
    bottom: 48px;
  }
}
