body {
  background-color: #f5f6f7;
  height: 117vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
}

/* Pour les écrans plus grands (ex: desktop ≥ 768px) */
@media (min-width: 768px) {
  body {
    height: 100vh;
    /* ou une valeur adaptée */
  }
}

.login-box {
  background: #fff;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 450px;
  /* overflow: hidden; */
}

.login-box .top-banner {
  color: white;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  font-weight: bold;
}

.nav-link-custom {
  position: relative;
  /* Assure que le lien est au-dessus */
  z-index: 10;
  /* Priorité sur les autres éléments */
  cursor: pointer;
  /* Assure que le pointeur change en main */
  text-decoration: none;
  /* Supprime les soulignements */
  /* color: inherit; */
  /* Utilise la couleur par défaut ou héritée */
}

.login-top-link {
  margin-top: 10px;
  margin-bottom: 20px; /* espace entre le bouton et le cadre */
}

.alert {
  font-size: 16px;
  font-weight: bold;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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



/* Style pour le conteneur du menu déroulant */
.custom-dropdown {
  position: relative;
  width: 100%;
  max-width: 150px;
  cursor: pointer;
  margin-right: -26px;
}

/* Style pour l'option sélectionnée */
.custom-dropdown .selected-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  background-color: #fff;
  font-size: 14px;
  width: 124px;
}

/* Style pour l'icône de flèche */
.custom-dropdown .selected-option::after {
  content: "▼";
  font-size: 12px;
  margin-left: 10px;
  color: #6c757d;
}

/* Liste déroulante */
.custom-dropdown .dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  max-height: 200px;
  overflow-y: auto;
  width: 124px;
}

/* Style pour chaque option */
.custom-dropdown .dropdown-options li {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

select {
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}
.custom-dropdown .dropdown-options li:hover {
  background-color: #f8f9fa;
}

/* Style pour les images dans les options */
.custom-dropdown .dropdown-options img {
  margin-right: 10px;
  width: 20px;
  height: auto;
  margin-left: -21px;
}

.message-container {
  margin-bottom: 20px; /* Ajoute un espacement entre le message et la boîte */
}

@media (max-width: 767px) {
  .message-container {
      margin-bottom: 164px; /* Réduit l'espacement sur les petits écrans */
  }

  .alert {
      font-size: 14px; /* Réduit la taille du texte pour les petits écrans */
      padding: 10px; /* Réduit le padding pour les petits écrans */
  }
}

@media screen and (max-width: 768px) {
  .login-top-link {
    position: absolute;
    top: -18px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 1000;
  }

  .login-top-link a {
    display: inline-block;
    font-size: 15px;
  }
}

.text-center {
  pointer-events: auto;
  /* Permet les clics sur les enfants */
}

.login-box-content {
  padding: 24px;
}

@media (max-width: 767px) {
  .login-box {
    max-width: 90%;
    margin-top: -150px;
  }
}

.logo {
  width: 250px;
  margin: 0 auto 1px;
  display: block;
  margin-top: -50px;
  margin-bottom: -30px;
}

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

.form-control {
  padding: 6px 10px;
  font-size: 14px;
}

.btn-login {
  width: 100%;
  font-size: 18px;
  padding: 8px;
}

.google-btn {
  width: 100%;
  font-size: 14px;
  padding: 8px;
  background-color: #fff;
  border: 1px solid #ddd;
}

.google-btn img {
  height: 18px;
  margin-right: 8px;
}

.divider {
  text-align: center;
  margin: 16px 0;
  font-size: 13px;
  color: #aaa;
}

.input {
  background-color: #efefef;
}