/* Login Page Custom Styles */

/*
  100vh no mobile inclui area atras da barra do navegador → scroll fantasma.
  100svh / 100dvh usam a viewport real (svh = estavel; dvh = dinamica).
*/
html:has(body.login-page) {
  height: 100%;
  overflow-x: hidden;
}

body.login-page {
  /* Fundo degrade base com cor principal #333F69 ate 65% e transicao suave para ciano #06B6D4 ate 100% */
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(61, 99, 105, 0.18), transparent 80%),
  radial-gradient(600px circle at 65% 0px, rgba(6, 182, 212, 0.09), transparent),
  radial-gradient(250px circle at 30% 75%, rgba(6, 182, 212, 0.09), transparent),
  linear-gradient(148deg, #333F69 39%, #1a1f3a 131%);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  padding: 20px;
  margin: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

.login-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.login-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E2E2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Left Column - Form */
.login-form-wrapper {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.login-logo {
  max-width: 140px;
  height: auto;
  margin-bottom: 32px;
}

.login-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333F69;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 32px;
}

.form-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: #212529;
}

.form-control-lg {
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #ced4da;
}

.form-control:focus {
  border-color: #06B6D4;
  box-shadow: 0 0 0 0.25rem rgba(6, 182, 212, 0.15);
}

/* Password Field with Eye Toggle */
.password-group {
  position: relative;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #6c757d;
  cursor: pointer;
  padding: 6px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.password-toggle-btn:hover {
  color: #333F69;
}

/* Submit Button */
.btn-login {
  background-color: #06B6D4;
  border-color: #06B6D4;
  color: #FFFFFF;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}

.btn-login:hover,
.btn-login:focus {
  background-color: #0891b2;
  border-color: #0891b2;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.forgot-password-link {
  color: #06B6D4;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.forgot-password-link:hover {
  color: #0891b2;
  text-decoration: underline;
}

/* Right Column - Swiper Slider */
.login-slider-wrapper {
  background-color: #F8FAFC;
  border-left: 1px solid #E2E2E2;
  padding: 48px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login-swiper {
  width: 100%;
  padding-bottom: 40px !important;
}

.swiper-slide {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slide-icon-wrapper {
  width: 140px;
  height: 140px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: #06B6D4;
  font-size: 4rem;
}

.slide-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333F69;
  margin-bottom: 12px;
}

.slide-text {
  font-size: 0.9rem;
  color: #6c757d;
  max-width: 320px;
  line-height: 1.6;
  margin: 0 auto 20px;
}

/* Custom Swiper Pagination Bullets */
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #CBD5E1;
  opacity: 1;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 12px;
  background: #06B6D4;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .login-slider-wrapper {
    border-left: none;
    border-top: 1px solid #E2E2E2;
  }
}

@media (max-width: 575.98px) {
  .login-form-wrapper {
    padding: 32px 24px;
  }

  .login-slider-wrapper {
    padding: 32px 20px;
  }
}

/* ==========================================================================
   Slide + Fade Animations for Auth Views (Login <-> Forgot Password)
   ========================================================================== */

.auth-views-container {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.auth-view-pane {
  grid-area: 1 / 1 / 2 / 2;
  width: 100%;
}

/* Transicao de entrada vindas da direita (Esqueci Senha surgindo) */
.anim-slide-in-right {
  animation: slideInRight 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Transicao de saida indo para a esquerda (Login saindo) */
.anim-slide-out-left {
  animation: slideOutLeft 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Transicao de entrada vinda da esquerda (Login voltando) */
.anim-slide-in-left {
  animation: slideInLeft 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Transicao de saida indo para a direita (Esqueci Senha saindo) */
.anim-slide-out-right {
  animation: slideOutRight 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(45px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-45px);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-45px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(45px);
  }
}
