/* SECTION CONNEXION */
.login-section {
  background: var(--couleur-fond);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.login-card {
  background: var(--couleur-carte);
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 40px 35px;
}

.login-header {
  text-align: center;
  margin-bottom: 25px;
}

.icon-circle-lg {
  width: 65px;
  height: 65px;
  background: var(--couleur-bouton);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  margin: 0 auto 15px;
  box-shadow: 0 3px 8px var(--couleur-ombre-bouton);
}

.login-header h1 {
  font-size: 1.5rem;
  color: var(--couleur-texte);
  margin-bottom: 8px;
}

.login-header p {
  color: #666;
  font-size: 0.9rem;
}

/* FORM (réutilise le pattern input-wrapper commun au site) */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--couleur-texte);
}

.input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #dbe3e8;
  border-radius: 10px;
  padding: 0 14px;
  background: #fafbfc;
  transition: border-color 0.2s;
}

.input-wrapper:focus-within {
  border-color: var(--couleur-texte);
}

.input-wrapper i {
  color: var(--couleur-texte);
  font-size: 0.9rem;
  margin-right: 10px;
}

.input-wrapper input {
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 0;
  width: 100%;
  font-size: 0.95rem;
  color: #1e2a33;
}

.btn-full {
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 13px;
  margin-top: 5px;
}

.login-link {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

.login-link a {
  color: var(--couleur-texte);
  font-weight: 600;
  text-decoration: none;
}

/* MESSAGE DE RESULTAT (reprend le pattern des autres pages) */
.modal-message {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
  text-align: center;
}

.modal-message-succes {
  background: #e3f7ec;
  color: #248f59;
  border: 1px solid #b7e8cc;
}

.modal-message-erreur {
  background: #fdecec;
  color: #c0392b;
  border: 1px solid #f5c2c0;
}

/* RESPONSIVE */
@media (max-width: 500px) {
  .login-card {
    padding: 30px 22px;
  }
}
