// Password visibility toggle (UI only) $('#togglePassword').on('click', function() { const field = $('#passwordField'); const icon = $(this).find('i'); if (field.attr('type') === 'password') { field.attr('type', 'text'); icon.removeClass('bi-eye').addClass('bi-eye-slash'); } else { field.attr('type', 'password'); icon.removeClass('bi-eye-slash').addClass('bi-eye'); }