/* Styles communs pour les formulaires d'authentification */

body {
  font-family: 'Inter', sans-serif;
}

/* Conteneur principal */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* Conteneur du formulaire */
.form-container {
  width: 100%;
  max-width: 500px;
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

/* Form header */
.header-section {
  text-align: center;
  margin-bottom: 30px;
}

.header-section h2 {
  color: var(--dark-base);
  margin-bottom: 30px;
  font-size: 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

/* Bouton Google */
.google-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  background: #fff;
  color: #444;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.google-btn:hover {
  background: #ffffff;
  border-color: #c0c0c0;
}

.google-btn img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

/* Separator */
.separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #777;
  font-size: 14px;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e0e0e0;
}

.separator:not(:empty)::before {
  margin-right: 1em;
}

.separator:not(:empty)::after {
  margin-left: 1em;
}

/* Champs de formulaire */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s;
}

/* Checkboxes/radios keep their natural size */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
  width: auto;
  padding: 0;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #00ff88;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.25);
}

.form-group input.error:focus,
.form-group input.input-error:focus,
.form-group select.error:focus,
.form-group select.input-error:focus {
  border-color: var(--primary-red) !important;
  box-shadow: none !important;
}

/* Bouton de soumission */
.submit-btn {
  width: 100%;
  padding: 14px;
  background-color: #014421; /* Émeraude profond */
  color: var(--white-off);
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.submit-btn:hover {
  background-color: #013315; /* Version légèrement plus sombre pour le hover */
  box-shadow: 0 4px 15px rgba(1, 68, 33, 0.3);
}

/* Lien de connexion */
.login-link {
  text-align: center;
  margin-top: 20px;
  color: #666;
}

.login-link a {
  color: #014421; /* Émeraude profond */
  text-decoration: none;
  font-weight: 600;
}

.login-link a:hover {
  text-decoration: underline;
}

/* Message d'erreur */
.error-message {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

/* Responsive */
@media (max-width: 600px) {
  .form-container {
    padding: 30px 20px;
  }
  
  .header-section h2 {
    font-size: 22px;
  }
  
  .google-btn,
  .submit-btn {
    padding: 12px;
  }
}
