/* Botón animado de mostrar/ocultar contraseña (lo crea js/password-toggle.js). */
:is(.input-icon, .input-wrap) input:has(+ .toggle-password) { padding-right: 46px; }
:is(.input-icon, .input-wrap) input::-ms-reveal { display: none; }
.toggle-password { position: absolute; top: 50%; right: 6px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: #64748b; cursor: pointer; transform: translateY(-50%); transition: background .2s, color .2s, transform .2s; }
.toggle-password:hover, .toggle-password:focus-visible { background: #fff4ed; color: #ff6a00; transform: translateY(-50%) scale(1.1); }
.toggle-password:active { transform: translateY(-50%) scale(.92); }
.toggle-password:focus-visible { outline: 2px solid #ff6a00; outline-offset: 1px; }
.toggle-password svg { width: 20px; height: 20px; }
.eye-pupil { transform-box: fill-box; transform-origin: center; transform: scale(.6); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.toggle-password[aria-pressed=true] .eye-pupil { transform: scale(1); }
.toggle-password:hover .eye-pupil { transform: scale(1.25); }
.eye-slash { stroke-dasharray: 24; stroke-dashoffset: 0; transition: stroke-dashoffset .3s ease; }
.toggle-password[aria-pressed=true] .eye-slash { stroke-dashoffset: 24; }
.toggle-password.blink .eye { animation: eye-blink .28s ease; }
@keyframes eye-blink { 50% { transform: scaleY(.1); } }
@media (prefers-reduced-motion: reduce) {
    .toggle-password, .eye-pupil, .eye-slash { transition: none; }
    .toggle-password.blink .eye { animation: none; }
}
