/* ============================================================
   Mostrar/ocultar contraseña — utilidad compartida
   Autosuficiente (sin FontAwesome ni dependencias), sin estilos
   inline (compatible con CSP style-src 'self'). El botón lo inyecta
   password-toggle.js sobre cada input[type="password"].
   ============================================================ */
.pw-toggle-wrap {
  position: relative;
  display: block;
  width: 100%;
}

/* Deja espacio a la derecha para el ícono. !important para ganarle al
   padding de los distintos frameworks de formularios sin conocerlos. */
.pw-toggle-wrap > .pw-has-toggle {
  display: block;
  padding-right: 2.75rem !important;
}

.pw-toggle-btn {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  border-radius: 6px;
  line-height: 0;
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
  transition: color 0.15s ease;
}

.pw-toggle-btn:hover { color: #1a4f8c; }

.pw-toggle-btn:focus-visible {
  outline: 2px solid #1a4f8c;
  outline-offset: 1px;
}

.pw-toggle-btn svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  pointer-events: none;
}

/* Evita el ojo nativo duplicado de Edge/IE sobre los campos ya mejorados. */
.pw-has-toggle::-ms-reveal,
.pw-has-toggle::-ms-clear { display: none; }
