function fillCredentials(email, password) {
document.querySelector('input[name="identity"]').value = email;
document.querySelector('input[name="password"]').value = password;
// Add animation to show the form has been filled
const form = document.querySelector('form');
form.style.transition = 'all 0.3s ease';
form.style.transform = 'scale(1.02)';
setTimeout(() => {
form.style.transform = 'scale(1)';
}, 200);
}
function toggleSections(showSections = true) {
const mainContainer = document.querySelector('.main-container');
const mobileAppsContainer = document.querySelector('.mobile-apps-container');
const demoSection = document.querySelector('.demo-section');
if (showSections) {
mainContainer.classList.remove('centered-layout');
mobileAppsContainer.style.display = '';
demoSection.style.display = '';
} else {
mainContainer.classList.add('centered-layout');
mobileAppsContainer.style.display = 'none';
demoSection.style.display = 'none';
}
}
// You can call toggleSections(false) to hide sections and center the login
// toggleSections(true) to show them again