/* =========================================
   STYLES SPÉCIFIQUES: LOGIN PAGE
   ========================================= */

.login-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

/* --- Left Visual Section --- */
.login-visual {
  flex: 1;
  position: relative;
  display: none;
  overflow: hidden;
}

@media (min-width: 992px) {
  .login-visual {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.visual-content {
  position: relative;
  z-index: 1;
  padding: 3rem;
  max-width: 500px;
}

/* Animations de flottement spécifiques au texte login */
.floating { animation: float 6s ease-in-out infinite; }
.floating-delayed { animation: float 6s ease-in-out infinite; animation-delay: 0.5s; }
.floating-delayed-2 { animation: float 6s ease-in-out infinite; animation-delay: 1s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  filter: drop-shadow(0 0 20px var(--primary-glow));
}

.logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 0 30px var(--primary-glow);
}

.visual-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.visual-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 3rem;
}

/* Sound wave spécifique au login */
.sound-wave {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 80px;
}

.sound-wave span {
  width: 6px;
  background: linear-gradient(to top, var(--primary), var(--secondary));
  border-radius: 3px;
  animation: soundWave 1.5s ease-in-out infinite;
  box-shadow: 0 0 15px var(--primary-glow);
}
/* Délais d'animation */
.sound-wave span:nth-child(1) { height: 20px; animation-delay: 0s; }
.sound-wave span:nth-child(2) { height: 40px; animation-delay: 0.1s; }
.sound-wave span:nth-child(3) { height: 25px; animation-delay: 0.2s; }
.sound-wave span:nth-child(4) { height: 55px; animation-delay: 0.3s; }
.sound-wave span:nth-child(5) { height: 35px; animation-delay: 0.4s; }
.sound-wave span:nth-child(6) { height: 65px; animation-delay: 0.5s; }
.sound-wave span:nth-child(7) { height: 45px; animation-delay: 0.6s; }
.sound-wave span:nth-child(8) { height: 55px; animation-delay: 0.7s; }
.sound-wave span:nth-child(9) { height: 30px; animation-delay: 0.8s; }
.sound-wave span:nth-child(10) { height: 50px; animation-delay: 0.9s; }
.sound-wave span:nth-child(11) { height: 20px; animation-delay: 1s; }
.sound-wave span:nth-child(12) { height: 35px; animation-delay: 1.1s; }

@keyframes soundWave {
  0%, 100% { transform: scaleY(1); opacity: 0.8; }
  50% { transform: scaleY(0.4); opacity: 1; }
}

/* --- Right Form Section --- */
.login-form-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Glass card flottante spécifique au login */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 80px rgba(138, 43, 226, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.floating-card {
  animation: floatCard 8s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(0.5deg); }
  75% { transform: translateY(-4px) rotate(-0.5deg); }
}

.login-form-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}
.form-header h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.form-header p { color: var(--text-muted); font-size: 0.938rem; }

/* Form Layout */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); }

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.remember-me { display: flex; align-items: center; gap: 0.5rem; }

.form-check-input {
  width: 18px;
  height: 18px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  cursor: pointer;
}
.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.forgot-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.forgot-link:hover { color: var(--primary-hover); }

.btn-login {
  /* Hérite de base des inputs, mais on ajoute le style gradient + large */
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  border-radius: 12px;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.4), 0 0 40px rgba(0, 191, 255, 0.2);
}

.signup-link {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.938rem;
}
.signup-link a { color: var(--primary); text-decoration: none; font-weight: 600; }
.signup-link a:hover { text-shadow: 0 0 10px var(--primary-glow); }

@media (max-width: 576px) {
  .login-form-container { padding: 1rem; }
  .login-form-wrapper { padding: 1.5rem; border-radius: 20px; }
  .floating-card { animation: none; }
}

.alert {
  display: flex;
  justify-content: center;
}