/* =============================================================
   auth-modal.css — FormUp & Go
   ============================================================= */

/* OVERLAY */
.fu-auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.fu-auth-overlay[hidden] {
  display: none;
}

/* CARTE MODALE */
.fu-auth-modal {
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  animation: fuModalIn 0.2s ease;
}

@keyframes fuModalIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* BOUTON FERMER */
.fu-auth-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #bfbfbf;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.fu-auth-close:hover {
  color: #fff;
  background: #2e2e2e;
}

/* ONGLETS */
.fu-auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #3a3a3a;
  padding-bottom: 0;
}

.fu-auth-tab {
  background: none;
  border: none;
  color: #bfbfbf;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.fu-auth-tab.is-active {
  color: #00FFFF;
  border-bottom-color: #00FFFF;
}

.fu-auth-tab:hover:not(.is-active) {
  color: #e6e6e6;
}

/* PANNEAUX */
.fu-auth-panel {
  display: none;
  flex-direction: column;
  gap: 1rem;
}
.fu-auth-panel.is-active {
  display: flex;
}

/* MESSAGE */
.fu-auth-msg {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.fu-auth-msg[hidden] { display: none; }
.fu-auth-msg--error   { background: rgba(255,60,60,0.15); color: #ff6b6b; border: 1px solid rgba(255,60,60,0.3); }
.fu-auth-msg--success { background: rgba(0,255,150,0.1);  color: #00ff96; border: 1px solid rgba(0,255,150,0.3); }

/* BOUTON GOOGLE */
.fu-auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem;
  background: #2e2e2e;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  color: #e6e6e6;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.fu-auth-google:hover {
  background: #3a3a3a;
  border-color: #555;
}

/* DIVISEUR */
.fu-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #bfbfbf;
  font-size: 0.85rem;
}
.fu-auth-divider::before,
.fu-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #3a3a3a;
}

/* CHAMPS */
.fu-auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.fu-auth-field label {
  font-size: 0.85rem;
  color: #bfbfbf;
  font-weight: 600;
}
.fu-auth-field input {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  color: #e6e6e6;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.fu-auth-field input:focus {
  outline: none;
  border-color: #00FFFF;
}
.fu-auth-field input::placeholder {
  color: #666;
}

/* WRAP MOT DE PASSE */
.fu-auth-pwd-wrap {
  position: relative;
}
.fu-auth-pwd-wrap input {
  padding-right: 2.5rem;
}
.fu-auth-eye {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #888;
  padding: 0;
  line-height: 1;
}
.fu-auth-eye:hover { color: #bfbfbf; }

/* BOUTON PRINCIPAL */
.fu-auth-submit {
  width: 100%;
  padding: 0.8rem;
  background: #00FFFF;
  color: #0f0f0f;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  margin-top: 0.25rem;
}
.fu-auth-submit:hover  { opacity: 0.88; }
.fu-auth-submit:active { transform: scale(0.98); }
.fu-auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* MOT DE PASSE OUBLIÉ */
.fu-auth-forgot-link {
  background: none;
  border: none;
  color: #00FFFF;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fu-auth-forgot-link:hover { opacity: 0.8; }

/* HINT MOT DE PASSE OUBLIÉ */
.fu-auth-hint {
  font-size: 0.9rem;
  color: #bfbfbf;
  margin: 0;
  line-height: 1.5;
}

/* RETOUR */
.fu-auth-back {
  background: none;
  border: none;
  color: #bfbfbf;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.fu-auth-back:hover { color: #e6e6e6; }

/* MOBILE */
@media (max-width: 480px) {
  .fu-auth-modal {
    padding: 1.5rem 1.25rem;
    border-radius: 12px;
  }
}
