function togglePwd() { const input = document.getElementById('password'); const icon = document.getElementById('eyeIcon'); if (input.type === 'password') { input.type = 'text'; } else { input.type = 'password'; } }