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;
}

.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;
}