/* === Fond animé pastel === */
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(-45deg, #fdf6d0, #e7e9ce, #f8e3e3, #fff3e0);
  background-size: 400% 400%;
  animation: bg 15s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes bg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === Container === */
.module-connexion {
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  max-width: 420px;
  width: 90%;
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.module-connexion h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #222;
}

/* === Champs === */
.input-block {
  margin-bottom: 1.2rem;
  position: relative;
}

.input-block input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 3rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 1rem;
  transition: 0.3s;
  background: #f9f9f9;
}

.input-block input:focus {
  border-color: #fdf6d0;
  background: #fff;
  outline: none;
  box-shadow: 0 0 5px #fdf6d0;
}

.input-block i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 1.2rem;
}

/* === Bouton === */
.btn-connexion {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  background-color: #fdf6d0;
  color: #333;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-connexion:hover {
  background-color: #eae1b3;
}

/* === Liens supplémentaires === */
.module-connexion .links {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.module-connexion .links a {
  display: block;
  color: #444;
  text-decoration: none;
  margin-top: 0.5rem;
}

.module-connexion .links a:hover {
  color: #000;
}

/* === Messages PHP === */
.alert {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.alert-danger {
  background-color: #ffe5e5;
  color: #a94442;
}

.alert-success {
  background-color: #e7fbe7;
  color: #3c763d;
}