/**
 * Champs mot de passe (connexion / inscription) : toggle visibilité, exigences, états OK/erreur.
 */
.oms-pw-input-wrap {
  position: relative;
  display: block;
}

.oms-pw-input-wrap > input[type="password"],
.oms-pw-input-wrap > input[type="text"] {
  padding-right: 3rem;
}

.oms-pw-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  line-height: 1;
  color: #64748b;
  border-radius: 0.375rem;
}

.oms-pw-toggle:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
}

.oms-pw-toggle:focus-visible {
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}

.oms-pw-requirements {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #475569;
}

.oms-pw-requirements li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.25rem;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.oms-pw-requirements li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 9999px;
  background: #94a3b8;
}

.oms-pw-requirements li.is-met {
  color: #94a3b8;
  opacity: 0.72;
}

.oms-pw-requirements li.is-met::before {
  background: #22c55e;
}

.oms-pw-requirements li.is-met .oms-pw-req-text {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* Contour confirmation : erreur / succès */
.oms-pw-confirm-wrap.has-mismatch > input {
  border-color: #f87171;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.45);
}

.oms-pw-confirm-wrap.is-match > input {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

/* Champ mot de passe principal : pulsation légère rouge si saisi mais non conforme */
@keyframes oms-auth-pw-warn-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.22);
  }
}

.oms-pw-input-wrap.oms-pw--warn {
  animation: oms-auth-pw-warn-pulse 1.1s ease-in-out 2;
  border-radius: 0.75rem;
  outline: 1px solid rgba(248, 113, 113, 0.55);
  outline-offset: 2px;
}

.oms-pw-input-wrap.oms-pw--warn > input {
  border-color: #fca5a5;
}

/* Secousse sur le champ confirmation uniquement si différent du maître */
@keyframes oms-auth-shake-soft {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-4px);
  }
  40% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(3px);
  }
}

.oms-pw-input-wrap.oms-pw--shake {
  animation: oms-auth-shake-soft 0.45s ease;
}

/**
 * Pages connexion / inscription : pas de header ni de footer, juste un petit
 * bandeau retour + logo, pour rester focus sur une seule chose.
 */
.oms-auth-page {
  min-height: 100vh;
  background: var(--bg, #fff);
}

.oms-auth-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 64px;
  padding: 0 16px;
  border-bottom: 1px solid #e2e8f0;
}

.oms-auth-back {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  color: #0f172a;
  transition: background-color 0.2s ease;
}

.oms-auth-back:hover {
  background-color: #f1f5f9;
}

.oms-auth-logo img {
  height: 28px;
  width: auto;
}

.oms-auth-block {
  padding-top: 32px;
}

/* Zone "continuer avec Google / biométrie" — même largeur/hauteur/arrondi que
   le bouton Google (pilule) pour que les deux se répondent visuellement. */
.oms-alt-auth {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.oms-alt-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
}

.oms-alt-auth-divider span:not(.caption1) {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

#oms-google-btn {
  min-height: 44px;
}
