/* 
   =========================================
   AUTHENTICATION & LANDING PAGE STYLES
   =========================================
*/

.auth-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background: var(--slate-100);
  position: relative;
  overflow: hidden;
}

.auth-layout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/background.jpg') center/cover;
  filter: blur(3px);
  transform: scale(1.1);
  z-index: 0;
}


/* --- LANDING HERO SECTION --- */
.landing-hero {
  text-align: center;
  max-width: 800px;
  z-index: 10;
  color: white;
  animation: slideUpFade 0.8s ease-out;
}

.landing-hero .hero-logo {
  font-size: 5rem;
  color: white;
  margin-bottom: 24px;
  filter: drop-shadow(0 10px 15px rgba(0, 151, 156, 0.2));
}

.landing-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: white;
  filter: drop-shadow(1px 3px 1px rgba(0, 151, 156, 0.9));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero p {
  font-size: 1.5rem;
  color: white;
  filter: drop-shadow(1px 3px 1px rgba(0, 151, 156, 0.9));
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: white;
  font-weight: 600;
  filter: drop-shadow(1px 3px 1px rgba(0, 151, 156, 0.9));
}

.feature-item i {
  font-size: 1.5rem;
  color: white;
  filter: drop-shadow(1px 3px 1px rgba(0, 151, 156, 0.9));
}

/* --- AUTH CARD WRAPPER --- */
.auth-card-wrapper {
  width: 100%;
  max-width: 500px;
  z-index: 10;
  display: none;
  /* Hidden by default toggled by JS */
}

/* --- AUTH COMPONENTS --- */
.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.auth-header h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--slate-600);
}

.auth-divider {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--slate-200);
  text-align: center;
}

/* --- FORM GRID (Simplified for Auth) --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid.single-col {
  grid-template-columns: 1fr;
}

/* --- ANIMATIONS FOR TRANSITION --- */
.fade-out {
  animation: fadeOutDown 0.5s ease-in forwards;
}

.fade-in-up {
  display: block !important;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(30px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-layout .card {
  transition: transform 0.3s ease;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 40px;
}


/* Mobile Adjustments for Login */
@media (max-width: 768px) {
  .auth-layout {
    padding: 10px;
  }

  .auth-card-wrapper {
    padding: 10px;
  }

  .auth-layout .card {
    padding: 30px 20px !important;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
  }

  .auth-logo-icon {
    font-size: 3rem;
    margin-bottom: 12px;
  }

  .auth-header h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

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

  .form-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero h1 {
    font-size: 2.2rem;
  }

  .landing-hero p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .hero-features {
    gap: 15px;
    flex-wrap: wrap;
  }
}

@media (max-width: 400px) {
  .auth-layout .card {
    padding: 24px 15px !important;
  }
  
  .auth-header h1 {
    font-size: 1.3rem;
  }
}