/* ============================ 🌐 BASE GÉNÉRALE ============================ */
body.login-page {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(to bottom right, #f1f5f9, #dbeafe);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ============================ 🧱 CONTAINER COMMUN ============================ */
.form-container {
  background-color: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 90%;
  text-align: center;
  margin: 20px;
}

.form-container img {
  max-width: 90px;
  margin-bottom: 0px;
}

.form-container h2,
.form-container h3 {
  font-size: 22px;
  color: #111827;
  margin-bottom: 20px;
}

/* ============================ 📥 INPUTS + BOUTONS ============================ */
.form-container input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

.form-container button {
  width: 100%;
  padding: 12px;
  background-color: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

/* ============================ 🔁 MOT DE PASSE OUBLIÉ ============================ */
.forgot-link {
  font-size: 14px;
  color: #555;
  margin-top: 14px;
  display: block;
  cursor: pointer;
  text-decoration: underline;
}

.forgot-link:hover {
  color: #000;
}

/* ============================ 🔐 MODAL ============================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.cancel-reset {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
}

/* ============================ ⚠️ ALERTES ============================ */
.alert {
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}

.alert.success { background: #dcfce7; color: #166534; }
.alert.error   { background: #fee2e2; color: #991b1b; }
.alert.info    { background: #e0f2fe; color: #0369a1; }

/* ============================ ✅ VALIDATION MOT DE PASSE ============================ */
.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper input[type="password"] {
  padding-right: 40px;
}

.indicator {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 18px;
}

.valid { color: green; }
.invalid { color: red; }

.instruction {
  font-size: 13px;
  color: #6b7280;
  margin-top: -5px;
  margin-bottom: 15px;
  text-align: center;
}

/* ============================ 📱 RESPONSIVE MOBILE ============================ */
@media (max-width: 480px) {
  .form-container {
    padding: 20px;
    margin: 20px;
  }

  .form-container h2,
  .form-container h3 {
    font-size: 20px;
  }

  .form-container img {
    max-width: 70px;
    margin-bottom: 0%;
  }
}

/* ==== FOOTER ==== */
.footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  background-color: #f5f5f5;
  font-size: 0.9em;
  color: #777;
  border-top: 1px solid #ddd;
}

.footer a {
  color: #555;
  text-decoration: none;
  margin: 0 5px;
}

.footer a:hover {
  text-decoration: underline;
}