/* ANIMATIONS */
.card-animate {
  opacity: 0;
  transform: translateY(28px);
  transition: all 0.5s cubic-bezier(.45,.13,.48,.87);
}
.card-animate.show {
  opacity: 1;
  transform: translateY(0);
}
.header-animate {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s cubic-bezier(.45,.13,.48,.87);
}
.header-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* Progress bar */
.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  margin: 0 auto;
}
.progress-bar {
  width: 0%;
  transition: width 0.5s cubic-bezier(.42,0,.58,1);
}

/* Etapes masquées */
.register-step { display: none; }
.register-step.active { display: flex; }

/* Champs additionnels adresse */
#moreAddressFields {
  display: flex;
}
#moreAddressFields.hidden {
  display: none;
}

/* Parrainage */
.parrain-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 80px;
  justify-content: center;
}

/* Cta bas */
.signup-cta {
  box-shadow: 0 4px 24px 0 #19c7ff18;
  border: 1px solid rgba(25,199,255,0.07);
  background: rgba(255,255,255,0.04);
}

/* Validation password rules */
.password-rules li {
  color: #fff7;
  transition: color 0.2s;
}
.password-rules li.valid {
  color: #22c55e;
  font-weight: 500;
}

/* ----------- INPUTS & ICONES - VERSION UNIFIÉE ----------- */
.relative {
  position: relative;
}

/* Icône à gauche centrée verticalement dans les inputs */
.relative .input-icon,
.relative i[data-feather] {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: #19c7ff;
  pointer-events: none;
  opacity: 1;
  z-index: 2;
}

/* Input avec espace pour l’icône à gauche */
.input-glass {
  width: 100%;
  padding-left: 48px;
  padding-right: 16px;
  min-height: 48px;
  line-height: 1.2;
  font-size: 1.09rem;
  border-radius: 1.2rem;
  box-sizing: border-box;
  display: block;
  color: #fff;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.11);
  outline: none;
  transition: border 0.25s, box-shadow 0.25s;
  backdrop-filter: blur(7px);
  margin-bottom: 0.5rem;
}

/* Padding réduit automatiquement si pas d’icône (pour navigateurs modernes, optionnel) */
.relative:not(:has(.input-icon)):not(:has(i[data-feather])) .input-glass {
  padding-left: 16px;
}

/* Responsive pour mobile */
@media (max-width: 600px) {
  .input-glass { min-height: 44px; font-size: 1rem; }
  .glass { padding-left: 8px !important; padding-right: 8px !important; }
}

/* LABEL FLOATING */
.label-glass {
  left: 48px;
  font-size: 1rem;
  top: 100%;
  transform: translateY(-90%);
  color: #f6f6f6d9;
  pointer-events: none;
  position: absolute;
}

/* Effet glass morphism */
.glass {
  background: rgba(255,255,255,0.09);
  box-shadow: 0 4px 24px 0 #19c7ff18;
  border-radius: 2rem;
  border: 1.3px solid rgba(25,199,255,0.07);
  backdrop-filter: blur(13px);
}

/* Boutons actions */
.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: white;
  font-weight: 600;
  border-radius: 1rem;
  background: linear-gradient(to right, rgba(25,199,255,0.17), rgba(236,72,153,0.12));
  box-shadow: 0 2px 16px 0 #19c7ff13;
  transition: all 0.2s ease;
}
.btn-action:active, .btn-action:hover {
  transform: scale(0.98);
  box-shadow: 0 0 12px #19c7ff33;
}

/* Layout général */
.header-animate > div {
  width: 100%;
  text-align: center !important;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}
.form-section-custom {
  margin-left: auto !important;
  margin-right: auto !important;
  width: 96vw !important;
  max-width: 410px !important;
  min-width: 0;
  box-sizing: border-box;
  padding-left: 10px !important;
  padding-right: 10px !important;
}
section.form-section-custom {
  box-sizing: border-box;
  padding-left: 10px;
  padding-right: 10px;
}

@media (max-width: 540px) {
  .form-section-custom { max-width: 100vw !important; padding-left: 2vw !important; padding-right: 2vw !important; }
  .input-glass { font-size: 0.97rem; min-height: 45px; }
}

@media (max-width: 480px) {
  .form-section-custom { max-width: 99vw !important; padding-left: 3vw !important; padding-right: 3vw !important; }
}

/* Tu peux ajouter ici d’autres classes si besoin */
.relative {
  position: relative;
}

/* Label flottant en haut quand input focus ou rempli */
.input-glass:focus + .label-glass,
.input-glass:not(:placeholder-shown) + .label-glass {
  top: -8px;
  left: 44px;
  font-size: 0.84rem;
  color: #19c7ff;
  background: rgba(23, 16, 39, 0.98); /* couleur de ton fond ou un effet glass */
  padding: 0 6px;
  border-radius: 8px;
  z-index: 4;
  pointer-events: none;
  transition: all 0.17s cubic-bezier(.45,.13,.48,.87);
}

/* Position normale (centré verticalement dans l’input au repos) */
.label-glass {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #f6f6f6d9;
  pointer-events: none;
  transition: all 0.19s cubic-bezier(.45,.13,.48,.87);
  z-index: 3;
  background: transparent;
}
@media (max-width: 600px) {
  .form-section-custom {
    margin-top: 4px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}
