/* ===== AUTHENTICATION STYLES ===== */

/* Auth Links */
.auth-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
}

/* Bouton Créer un profil - Style similaire au bouton Se connecter */
#btn-create-account-eleve,
#btn-create-account-prof {
  padding: 16px 80px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: 2px solid transparent;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Source Serif 4', 'Times New Roman', serif;
  min-height: 50px;
  min-width: 280px;
  text-align: center;
  white-space: nowrap;
}

#btn-create-account-eleve:hover,
#btn-create-account-prof:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
}

#btn-create-account-eleve:active,
#btn-create-account-prof:active {
  transform: translateY(0);
}

/* Bouton Mot de passe oublié - Texte plus petit */
#btn-forgot-password-eleve,
#btn-forgot-password-prof {
  background: none !important;
  border: none !important;
  color: #667eea;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transition: color 0.3s ease;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none !important;
  min-height: auto !important;
  min-width: auto !important;
  font-family: 'Source Serif 4', 'Times New Roman', serif;
  text-align: center;
  display: inline-block;
  width: auto;
  overflow: visible !important;
  white-space: nowrap;
}

#btn-forgot-password-eleve::before,
#btn-forgot-password-prof::before {
  display: none !important;
}

#btn-forgot-password-eleve:hover,
#btn-forgot-password-prof:hover {
  background: none !important;
  color: #764ba2;
  transform: none !important;
  box-shadow: none !important;
}

#btn-forgot-password-eleve:active,
#btn-forgot-password-prof:active {
  transform: none !important;
}

#btn-forgot-password-eleve:focus,
#btn-forgot-password-prof:focus {
  outline: 1px dotted #667eea !important;
  outline-offset: 2px !important;
}

/* Modal Styles - Spécifiques pour l'authentification */
#modal-create-account,
#modal-forgot-password {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.6) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 10000 !important;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
  transform: none !important;
  margin: 0 !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#modal-create-account.hidden,
#modal-forgot-password.hidden {
  display: none !important;
}

#modal-create-account .modal-content,
#modal-forgot-password .modal-content {
  background: white !important;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  margin: 0 !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 32px;
  color: #999;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  min-height: auto;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
  transform: rotate(90deg);
  box-shadow: none;
}

.modal-title {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
  font-family: 'Source Serif 4', 'Times New Roman', serif;
}

.modal-description {
  font-size: 15px;
  color: #666;
  margin-bottom: 25px;
  text-align: center;
  line-height: 1.6;
  font-family: 'Source Serif 4', 'Times New Roman', serif;
}

.modal-content .form-group {
  margin-bottom: 20px;
}

.modal-content .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  text-align: left;
  font-family: 'Source Serif 4', 'Times New Roman', serif;
}

.modal-content .form-group input,
.modal-content .form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #999;
  border-radius: 8px;
  font-family: 'Source Serif 4', 'Times New Roman', serif;
  font-size: 16px;
  background: white;
  color: #333;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.modal-content .form-group input:focus,
.modal-content .form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-content .error-message {
  display: block;
  color: #dc3545;
  font-size: 13px;
  margin-top: 5px;
  text-align: left;
  font-family: 'Source Serif 4', 'Times New Roman', serif;
}

.modal-content .btn-primary {
  width: 100%;
  padding: 14px 28px;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  font-family: 'Source Serif 4', 'Times New Roman', serif;
}

.modal-content .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
}

.modal-content .btn-primary:active {
  transform: translateY(0);
}

.modal-content .optional-label {
  color: #999;
  font-weight: 400;
  font-size: 14px;
}

/* Checkbox Label */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin: 0;
  padding: 0;
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  cursor: pointer;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.checkbox-label span {
  flex: 1;
  font-size: 15px;
  color: #333;
  line-height: 1.4;
}

/* Help Text */
.help-text {
  margin: 8px 0 0 0;
  padding: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    padding: 30px 20px;
    max-width: 95%;
  }
  
  .modal-title {
    font-size: 24px;
  }
  
  .auth-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-link {
    width: 100%;
    text-align: center;
  }
}
