document.addEventListener('DOMContentLoaded', function() {
const cookies = document.cookie.split(';');
for(let cookie of cookies) {
const [name, value] = cookie.split('=').map(c => c.trim());
if(name === 'user_email') {
document.getElementById('email').value = value;
break;
}
}
});