/* Titre principal */
h2 {
  color: #007bff;
  margin: 20px 0 10px;
  font-size: 2em;
  text-align: center;
}

/* Texte de redirection */
.redirect-text {
  text-align: center;
  margin: 10px 0 30px;
  font-size: 1.1em;
  color: #666;
}

.redirect-text a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

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

/* Conteneur du formulaire */
.form-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
}

/* Champs du formulaire */
.form-control {
  width: 100%;
  max-width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Labels */
.form-label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

/* Bouton de soumission */
.btn {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.btn:active {
  background-color: #003d80;
  transform: translateY(0);
}

/* Messages d'erreur des champs */
.error {
  font-size: 0.85em;
  color: #d9534f;
  margin-top: 5px;
}

/* Messages flash */
.flash-messages {
  margin-bottom: 20px;
}

.flash-messages .alert {
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 10px;
  text-align: center;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Media Query pour petits écrans */
@media (max-width: 576px) {
  .form-container {
    margin: 20px;
    padding: 15px;
  }

  .btn {
    font-size: 14px;
  }

  .form-control {
    font-size: 12px;
  }

  .form-label {
    font-size: 12px;
  }
}
