.form-success {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  text-align: center;

  background: rgba(38, 128, 72, 0.9);
  color: #fff;

  box-shadow: 0 0 8px rgba(38, 128, 72, 0.6);
}

body {
  background-image: url("/images/HallDeGuilde.png");
  background-color: #000;
  background-size: auto 100vh;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  margin: 0;
  overflow-x: hidden;
}

.hall-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 220px);
  padding: 20px;
}

.hall-card {
  max-width: 460px;
  width: 100%;
  padding: 30px;
  border-radius: 12px;
  background: rgba(250, 249, 249, 0.7);
  border: 1px solid #444;
  color: #070707;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.65);
}

.hall-card h1 {
  margin-bottom: 10px;
  text-align: center;
  font-size: 2rem;
}

.hall-intro {
  margin-bottom: 20px;
  text-align: center;
  color: #020202;
}

.hall-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hall-form input[type="text"],
.hall-form input[type="email"],
.hall-form input[type="password"] {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #555;
  background: rgba(250, 249, 249, 0.5);
  color: #030303;
}

.hall-form button {
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  background: #345e30;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.hall-form button:hover {
  background: #294e13;
  transform: translateY(-1px);
}

.hall-form button:active {
  transform: translateY(0);
}

.hall-form input:focus {
  outline: none;
  border-color: #aaa;
}

.hall-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000000;
  font-size: 0.9rem;
}

.hall-checkbox input {
  width: auto;
}

.auth-help-link {
  text-align: center;
  margin-top: 10px;
}

.auth-help-link a {
  color: #294e13;
  text-decoration: none;
}

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

.auth-success {
  max-width: 420px;
  margin: 0 auto 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(30, 120, 30, 0.6);
  border-radius: 12px;
  background: rgba(0, 60, 0, 0.75);
  color: #e8ffe8;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(50, 255, 50, 0.2);
}

.form-error {
  min-height: 18px;
  margin-bottom: 10px;
  color: #ff6b6b;
  font-size: 0.9rem;
  text-align: center;
}

.auth-error {
  max-width: 420px;
  margin: 0 auto 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(160, 30, 30, 0.6);
  border-radius: 12px;
  background: rgba(70, 0, 0, 0.75);
  color: #ffe8e8;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(255, 50, 50, 0.25);
}

.hall-links {
  margin-top: 20px;
  text-align: center;
  color: #030303;
}

.hall-links a {
  color: #345e30;
  font-weight: bold;
}

#acces {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 25px;
}

#btn-public::before {
  content: "Entrez dans l'univers de Gaïranthia";
  position: absolute; /* Position absolue par rapport à son parent */
  background-color: rgba(0, 0, 0, 0.8); /* Couleur de fond de l'infobulle */
  color: #fff; /* Couleur du texte de l'infobulle */
  padding: 5px 10px; /* Espacement interne de l'infobulle */
  border-radius: 5px; /* Coins arrondis de l'infobulle */
  font-size: 15px; /* Taille de la police de l'infobulle */
  visibility: hidden; /* Masquer l'infobulle par défaut */
  opacity: 0; /* Rendre l'infobulle transparente par défaut */
  transition: opacity 0.3s ease; /* Ajouter une transition pour une apparition en douceur */

  top: -40px;
}

#btn-public:hover::before {
  visibility: visible; /* Afficher l'infobulle au survol */
  opacity: 1; /* Rendre l'infobulle opaque */
}

#btn-public {
  margin-right: 10px;
  cursor: url("/images/boutons/curseurPublic.png"), auto;
  background: none;
  border: none;
}

/*bouton d'accès prive au tableau de bord*/
#btn-prive::before {
  content: "Accès privé";
  position: absolute; /* Position absolue par rapport à son parent */
  background-color: rgba(0, 0, 0, 0.8); /* Couleur de fond de l'infobulle */
  color: #e20f0f; /* Couleur du texte de l'infobulle */
  padding: 5px 10px; /* Espacement interne de l'infobulle */
  border-radius: 5px; /* Coins arrondis de l'infobulle */
  font-size: 15px; /* Taille de la police de l'infobulle */
  visibility: hidden; /* Masquer l'infobulle par défaut */
  opacity: 0; /* Rendre l'infobulle transparente par défaut */
  transition: opacity 0.3s ease; /* Ajouter une transition pour une apparition en douceur */
  top: -40px;
}

#btn-prive:hover::before {
  visibility: visible; /* Afficher l'infobulle au survol */
  opacity: 1; /* Rendre l'infobulle opaque */
}

#btn-prive {
  margin-left: 50px;
  margin-top: 35px;
  cursor: url("/images/boutons/clef.png"), auto;
  background: none;
  border: none;
}

@media (max-width: 750px) {
  .access {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  #btn-prive,
  #btn-public {
    position: relative;
  }

  #btn-prive::before,
  #btn-public::before {
    visibility: visible;
    opacity: 1;
    position: absolute;

    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;

    padding: 5px 5px 5px 5px;
    border-radius: 5px;
    border: 1px solid white;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
  }

  #btn-prive::before {
    content: "Accès privé";
    top: 50%;
    right: 102%;
    color: #e20f0f;
    transform: translateY(-50%);
  }

  #btn-public::before {
    content: "Entrez dans l'univers de Gaïranthia";
    bottom: 102%;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 500px) {
  .hall-card {
    padding: 20px;
  }
}
