document.addEventListener('DOMContentLoaded', function() { // Form validation const form = document.querySelector('form'); if (form) { form.addEventListener('submit', function(e) { e.preventDefault(); // Simple validation const email = document.getElementById('email').value; const password = document.getElementById('password').value; if (!email || !password) { alert('Please fill in all fields'); return; } // Simulate form submission console.log('Form submitted', { email, password }); alert('Login successful! (demo)'); }); } // Add any additional interactive elements here });