document.addEventListener("DOMContentLoaded", function () {
if (document.body.id === "page-login-index") {
const urlParams = new URLSearchParams(window.location.search);
const isAdmin = urlParams.get("admin") === "1";
// Seleciona o botão do OAuth2 com nome "Zoho"
const zohoButton = [...document.querySelectorAll("a.btn.btn-block")]
.find(el => el.textContent.trim().toLowerCase().includes("zoho"));
if (zohoButton && !isAdmin) {
zohoButton.style.display = "none";
}
}
});