
/* === AUTHENTICATION CSS FIXES (FORCE OVERRIDE) === */

/* Conteneur principal */
#authPanel {
  max-width: 400px;
  margin: 30px auto;
  background: #141414; /* var(--bg-panel) */
  border: 1px solid #333;
  border-radius: 4px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: block; /* S'assure qu'il est visible s'il n'est pas .hidden */
}

#authPanel.hidden {
  display: none !important;
}

#authTitle {
  display: block;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #d32f2f; /* var(--primary) */
  text-transform: uppercase;
}

/* Champs de saisie */
.auth-forms-container .input-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.auth-forms-container input {
  width: 100%;
  padding: 12px 15px;
  background: #000;
  border: 1px solid #333;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  border-radius: 4px;
  outline: none;
  box-sizing: border-box; /* IMPORTANT */
}

.auth-forms-container input:focus {
  border-color: #d32f2f;
  box-shadow: 0 0 10px rgba(211, 47, 47, 0.2);
}

/* Boutons */
.auth-forms-container .action-group {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Espacement vertical entre les boutons */
}

.auth-forms-container button {
  width: 100%;
  padding: 14px;
  border: none;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bouton Principal (Rouge) */
#mainAuthBtn {
  background: #d32f2f;
  color: #fff;
}

#mainAuthBtn:hover {
  background: #9a0007;
}

/* Bouton Google (Blanc) */
#googleAuthBtn {
  background: #fff;
  color: #333;
  position: relative;
}

#googleAuthBtn:hover {
  background: #f0f0f0;
}

/* Icône Google (Simulation texte si pas d'image) */
.google-icon {
  font-weight: 900;
  color: #4285F4;
  font-size: 1.4rem;
  margin-right: 10px;
  font-family: 'Roboto', sans-serif; /* G look */
}

/* Toggle Link */
.auth-toggle {
  margin-top: 25px;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

#toggleAuthModeBtn {
  background: none;
  border: none;
  color: #d32f2f;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  margin-left: 5px;
  display: inline;
  width: auto;
  padding: 0;
  font-size: 0.9rem;
}

#toggleAuthModeBtn:hover {
  color: #fff;
}

/* Status Message */
#authStatus {
  margin-top: 15px;
  padding: 10px;
  text-align: center;
  border-radius: 4px;
  font-size: 0.9rem;
}

.auth-success {
  background: rgba(0, 200, 83, 0.2);
  color: #00e676;
  border: 1px solid #00e676;
}

.auth-error {
  background: rgba(255, 23, 68, 0.2);
  color: #ff1744;
  border: 1px solid #ff1744;
}
