/* ============================= */
/* 🎨 STYLE PAGE DE CONNEXION    */
/* ============================= */

body.login-page {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #1565c0, #42a5f5);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* 🌈 Dégradé animé subtil en fond */
body.login-page::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1), transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(255,255,255,0.1), transparent 50%);
  animation: bgMove 20s linear infinite;
  z-index: 0;
}
@keyframes bgMove {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 🧱 Conteneur de connexion */
.login-container {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  width: 360px;
  animation: floatIn 1s ease-out forwards;
  transform: translateY(40px);
  opacity: 0;
}
@keyframes floatIn {
  to { transform: translateY(0); opacity: 1; }
}

.login-container h2 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}

/* 🧾 Formulaire */
#loginForm {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
#loginForm input {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  transition: all 0.3s ease;
}
#loginForm input:focus {
  background: #ffffff;
  box-shadow: 0 0 10px rgba(21, 101, 192, 0.3);
  transform: scale(1.02);
}

/* 🔘 Bouton de connexion */
#loginForm button {
  background: #ffca28;
  color: #0d47a1;
  font-weight: 600;
  border: none;
  padding: 0.9rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}
#loginForm button:hover {
  background: #ffd740;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 202, 40, 0.4);
}

/* 🧩 Liens */
.info-text {
  margin-top: 1.5rem;
  color: #f1f1f1;
  font-size: 0.95rem;
}
.info-text a {
  color: #ffca28;
  text-decoration: none;
  font-weight: 600;
}
.info-text a:hover {
  text-decoration: underline;
}

.login-container p a {
  color: #e3f2fd;
  text-decoration: none;
}
.login-container p a:hover {
  text-decoration: underline;
}

/* 🌟 Animation de fade-in sur l’ensemble */
.fade-in {
  animation: fadeIn 1.2s ease forwards;
  opacity: 0;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* 📱 Responsive */
@media (max-width: 480px) {
  .login-container {
    width: 90%;
    padding: 2.5rem 1.5rem;
  }
  .login-container h2 {
    font-size: 1.5rem;
  }
}
