document.addEventListener('DOMContentLoaded', function () { const togglePassword = document.querySelector('.toggle-password'); const passwordInput = document.getElementById('password'); if (togglePassword && passwordInput) { togglePassword.addEventListener('click', function () { const type = passwordInput.getAttribute('type') === 'password' ? 'text' : 'password'; passwordInput.setAttribute('type', type); this.classList.toggle('bi-eye'); this.classList.toggle('bi-eye-slash'); }); } });