const menuToggle = document.getElementById('menu-toggle');
const mobileNav = document.getElementById('mobile-nav');

menuToggle.addEventListener('click', () => {
    menuToggle.classList.toggle('active');
    mobileNav.classList.toggle('active');
});

document.querySelector("form").addEventListener("submit", (e) => {
    const password = document.querySelector("input[name='password']").value;
    const confirmPassword = document.querySelector("input[name='konfirmasi_password']").value;

    if (password !== confirmPassword) {
        e.preventDefault();
        alert("Password dan konfirmasi password tidak cocok!");
    }
});
