frappe.pages["eim-portal"].on_page_load = function(wrapper) {
    wrapper.innerHTML = '<div style="display:flex;align-items:center;justify-content:center;height:60vh;font-family:sans-serif;"><div style="text-align:center;"><i class="fa fa-spinner fa-spin" style="font-size:24px;color:#2d7d46;"></i><p style="margin-top:12px;color:#555;">Redirecting to EIM Device Portal...</p></div></div>';
    setTimeout(function() { window.location.href = "https://eim.diagalon.com"; }, 500);
};
