/* === MODALE FOND === */
.modal {
  display: none; /* cachée par défaut */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.75); /* fond noir transparent */
  backdrop-filter: blur(3px);
}

/* === CONTENU DE LA MODALE === */
.modal-content {
  background-color: #1e1e1e;
  color: #00ffe0;
  margin: 10% auto;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 20px #00ffe0aa;
  position: relative;
  font-family: 'Segoe UI', sans-serif;
}

/* === BOUTON DE FERMETURE === */
.modal-content .close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  color: #ff5555;
  cursor: pointer;
  transition: color 0.2s ease;
}
.modal-content .close:hover {
  color: #ff0000;
}

/* === FORMULAIRE === */
.registration-form .form-group {
  margin-bottom: 20px;
}

.registration-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #ffffff;
}

.registration-form input[type="email"],
.registration-form input[type="password"] {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: #2a2a2a;
  color: #00ffe0;
  font-size: 1em;
  box-shadow: inset 0 0 5px #00ffe055;
  box-sizing: border-box; /* ← ici aussi */
}


.registration-form input:focus {
  outline: none;
  box-shadow: 0 0 10px #00ffe0;
}

/* Bouton "👁️" pour voir le mot de passe */
#togglePassword {
  color: #00ffe0;
  transition: transform 0.2s ease;
}
#togglePassword:hover {
  transform: scale(1.1);
}

/* === BOUTON DE CONNEXION === */
.submit-button {
  width: 100%;
  padding: 12px;
  border: none;
  background-color: #00ffe0;
  color: #000;
  font-weight: bold;
  font-size: 1em;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 12px #00ffe088;
}

.submit-button:hover {
  background-color: #00ccbb;
  box-shadow: 0 0 20px #00ffe0;
}

/* === LIENS DANS LA MODALE === */
.modal-content p.text-center {
  text-align: center;
  margin-top: 20px;
  font-size: 0.95em;
}

.modal-content p.text-center a {
  color: #ffb86c;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.modal-content p.text-center a:hover {
  color: #ffa500;
  text-shadow: 0 0 10px #ffb86c;
}

/* Style de l'icône Power petit + transparent */
.power-icon-btn {
    width: 30px;
    height: 30px;
    background-color: rgba(46, 204, 113, 0.85);  /* Vert avec transparence */
    border-radius: 50%;
    border: none;
    position: absolute;
    top: 20px;
    left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    transition: background-color 0.3s, opacity 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.7;  /* Opacité initiale */
}

/* Couleur et opacité après déconnexion (rouge) */
.power-icon-btn.logged-out {
    background-color: rgba(231, 76, 60, 0.85); /* Rouge doux transparent */
}

/* Couleur et opacité après connexion (vert) */
.power-icon-btn.connected {
    background-color: rgba(46, 204, 113, 0.85); /* Vert doux transparent */
}

/* Effet au survol */
.power-icon-btn:hover {
    background-color: #e74c3c; /* Rouge vif opaque au survol */
    opacity: 1; /* Opacité 100% au survol */
    transform: scale(1.1); /* Léger zoom */
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

/* Icône interne */
.power-icon-btn i {
    font-size: 16px;
}
