/* Styles pour les formulaires d'authentification */

.auth-container {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: #4a89dc;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(74, 137, 220, 0.25);
}

.form-group input:invalid {
  border-color: #e74c3c;
}

.form-actions {
  margin-top: 2rem;
  text-align: center;
}

.form-actions button {
  width: 100%;
  padding: 0.75rem;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form-actions button:hover {
  background-color: #3a7bc8;
}

.btn-primary:disabled {
  background-color: #7a9cc6;
  cursor: not-allowed;
}

.form-footer {
  margin-top: 1.5rem;
  text-align: center;
  color: #777;
}

.form-footer a {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 600;
}

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

.form-text {
  font-size: 0.8rem;
  color: #6c757d;
}

/* Styles pour les messages d'erreur */
.error-message {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  display: none;
}

/* Message de succès */
.success-message {
  color: #27ae60;
  background-color: #f0f9f4;
  border: 1px solid #27ae60;
  border-radius: 4px;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Styles pour le menu utilisateur */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.dropdown-toggle i {
  margin-left: 5px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  display: block;
  width: 100%;
}

.dropdown-menu a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s;
}

.dropdown-menu a:hover {
  background-color: #f5f5f5;
}

#logout-button {
  color: #e74c3c;
}

/* Styles pour les boutons d'authentification */
.auth-button {
  margin: 0 10px;
}

/* Message d'erreur */
.error-message {
  color: #e74c3c;
  margin-top: 1rem;
  text-align: center;
}
