{"id":2891,"date":"2026-08-23T20:22:40","date_gmt":"2026-08-23T23:22:40","guid":{"rendered":"https:\/\/bellanetfiber.com.br\/conta\/?page_id=2891"},"modified":"2026-08-24T10:49:50","modified_gmt":"2026-08-24T13:49:50","slug":"cadastro-pj-e-pf","status":"publish","type":"page","link":"https:\/\/bellanetfiber.com.br\/conta\/cadastro-pj-e-pf\/","title":{"rendered":"Cadastro Pj e Pf"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"2891\" class=\"elementor elementor-2891\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6a7296db e-flex e-con-boxed e-con e-parent\" data-id=\"6a7296db\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-ec97fa0 elementor-widget elementor-widget-html\" data-id=\"ec97fa0\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!DOCTYPE html>\r\n<html lang=\"pt-BR\">\r\n<head>\r\n<meta charset=\"UTF-8\">\r\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n<title>Menu Lateral Bellanet Fiber<\/title>\r\n\r\n<link rel=\"stylesheet\" href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/6.5.0\/css\/all.min.css\">\r\n\r\n<style>\r\nbody {\r\n    margin: 0;\r\n    background: #ffffff; \r\n    font-family: \"Poppins\", sans-serif;\r\n    color: #333;\r\n}\r\n\r\n\/* Overlay *\/\r\n.overlay {\r\n    position: fixed;\r\n    top: 0;\r\n    left: 0;\r\n    width: 100%;\r\n    height: 100%;\r\n    background: rgba(0,0,0,0);\r\n    display: none;\r\n    z-index: 99990;\r\n    transition: background 0.35s, opacity 0.35s;\r\n}\r\n.overlay.active {\r\n    display: block;\r\n    background: rgba(0,0,0,0.3); \r\n}\r\n@media (min-width: 769px) {\r\n    .overlay { display: none !important; }\r\n}\r\n\r\n\/* Bot\u00e3o Toggle *\/\r\n.toggle-btn {\r\n    display: flex !important;\r\n    align-items: center !important;\r\n    gap: 10px !important;\r\n    position: fixed !important;\r\n    top: 20px;\r\n    left: 20px;\r\n    background: linear-gradient(135deg, #6A00F4, #007BFF);\r\n    padding: 10px 14px;\r\n    border-radius: 10px;\r\n    cursor: pointer;\r\n    color: #fff;\r\n    font-size: 20px;\r\n    z-index: 99999 !important;\r\n    box-shadow: 0 4px 15px rgba(106,0,244,0.3);\r\n    transition: 0.3s;\r\n}\r\n.toggle-btn span {\r\n    font-weight: bold;\r\n    font-size: 20px;\r\n    color: #fff; \r\n}\r\n.toggle-btn:hover {\r\n    transform: scale(1.12);\r\n    box-shadow: 0 0 45px rgba(106,0,244,0.5);\r\n}\r\n\r\n\/* \u00cdcone Wi-Fi pulsante *\/\r\n@keyframes pulseWifi {\r\n    0% { transform: scale(1); text-shadow: 0 0 8px #ffffff; }\r\n    50% { transform: scale(1.15); text-shadow: 0 0 16px #ffffff, 0 0 20px #007BFF; }\r\n    100% { transform: scale(1); text-shadow: 0 0 8px #ffffff; }\r\n}\r\n.toggle-btn i {\r\n    animation: pulseWifi 1.6s infinite ease-in-out;\r\n}\r\n\r\n\/* Menu Lateral *\/\r\n.menu-lateral {\r\n    position: fixed !important;\r\n    top: 0;\r\n    left: 0;\r\n    width: 260px;\r\n    height: 100vh;\r\n    background: #f8f9fa; \r\n    padding-top: 70px;\r\n    transform: translateX(-100%);\r\n    transition: transform 0.5s cubic-bezier(0.77,0,0.175,1);\r\n    box-shadow: 5px 0 25px rgba(0,0,0,0.1);\r\n    z-index: 99998 !important;\r\n    display: flex;\r\n    flex-direction: column;\r\n    gap: 10px;\r\n}\r\n.menu-lateral.active {\r\n    transform: translateX(0);\r\n}\r\n\r\n\/* Bot\u00e3o fechar *\/\r\n.menu-lateral .close-btn {\r\n    position: absolute;\r\n    top: 15px;\r\n    right: 15px;\r\n    background: none;\r\n    border: none;\r\n    color: #333; \r\n    font-size: 24px;\r\n    cursor: pointer;\r\n    transition: transform 0.3s;\r\n}\r\n.menu-lateral .close-btn:hover {\r\n    transform: scale(1.2);\r\n    color: #6A00F4;\r\n}\r\n\r\n\/* Links *\/\r\n.menu-lateral a {\r\n    display: flex;\r\n    align-items: center;\r\n    padding: 16px 28px;\r\n    gap: 14px;\r\n    font-size: 18px;\r\n    text-decoration: none;\r\n    color: #444; \r\n    opacity: 0;\r\n    transform: translateX(-25px);\r\n    transition: 0.3s;\r\n}\r\n\r\n\/* Anima\u00e7\u00e3o em ondas *\/\r\n.menu-lateral.active a { animation: slideIn 0.55s forwards ease; }\r\n@keyframes slideIn {\r\n    from { opacity: 0; transform: translateX(-25px); }\r\n    to { opacity: 1; transform: translateX(0); }\r\n}\r\n.menu-lateral.active a:nth-child(2) { animation-delay: 0.10s; }\r\n.menu-lateral.active a:nth-child(3) { animation-delay: 0.20s; }\r\n.menu-lateral.active a:nth-child(4) { animation-delay: 0.30s; }\r\n.menu-lateral.active a:nth-child(5) { animation-delay: 0.40s; }\r\n\r\n\/* Hover com neon suave *\/\r\n.menu-lateral a:hover {\r\n    background: linear-gradient(90deg, #f0f0f0, #e0e0e0);\r\n    padding-left: 40px;\r\n    color: #6A00F4;\r\n    transform: translateX(10px);\r\n}\r\n.menu-lateral a i { \r\n    transition: transform 0.4s; \r\n    color: #6A00F4; \r\n}\r\n.menu-lateral a:hover i { transform: scale(1.25); }\r\n\r\n@media (max-width: 768px) {\r\n    .menu-lateral { width: 80%; }\r\n}\r\n<\/style>\r\n<\/head>\r\n<body>\r\n\r\n<div class=\"toggle-btn\" onclick=\"toggleMenu()\">\r\n    <i class=\"fa-solid fa-wifi\"><\/i>\r\n    <span>Bellanetfiber<\/span>\r\n<\/div>\r\n\r\n<div id=\"overlay\" class=\"overlay\" onclick=\"toggleMenu()\"><\/div>\r\n\r\n<div id=\"menuLateral\" class=\"menu-lateral\">\r\n    <button class=\"close-btn\" onclick=\"toggleMenu()\"><i class=\"fa-solid fa-xmark\"><\/i><\/button>\r\n    <a href=\"https:\/\/bellanetfiber.com.br\/\"><i class=\"fa-solid fa-house\"><\/i> In\u00edcio<\/a>\r\n    <a href=\"https:\/\/bellanetfiber.com.br\/conta\/itochat\/login\/\"><i class=\"fa-solid fa-user\"><\/i> Acessar Conta<\/a>\r\n    <a href=\"https:\/\/bellanetfiber.com.br\/demo\/\"><i class=\"fa-solid fa-link\"><\/i> Recursos<\/a>\r\n    <a href=\"https:\/\/bellanetfiber.com.br\/divulgue-sua-empresa\"><i class=\"fa-solid fa-building\"><\/i> Planos<\/a>\r\n<\/div>\r\n\r\n<script>\r\nfunction toggleMenu() {\r\n    const menu = document.getElementById('menuLateral');\r\n    const overlay = document.getElementById('overlay');\r\n\r\n    menu.classList.toggle('active');\r\n    overlay.classList.toggle('active');\r\n\r\n    if (menu.classList.contains('active')) {\r\n        menu.querySelectorAll('a').forEach((item) => {\r\n            item.style.animation = 'none';\r\n            item.offsetHeight;\r\n            item.style.animation = '';\r\n        });\r\n    }\r\n}\r\n<\/script>\r\n\r\n<\/body>\r\n<\/html>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1d32c9d elementor-widget elementor-widget-shortcode\" data-id=\"1d32c9d\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><link rel=\"stylesheet\" href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/6.4.0\/css\/all.min.css\"><style>\n        :root { --bn-color: #6A00F4; --bn-color-light: #a855f7; }\n        .bn-auth-wrapper { font-family: \"Segoe UI\", Roboto, sans-serif; max-width: 520px; margin: 40px auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 10px 30px rgba(106, 0, 244, 0.08); overflow: hidden; }\n        .bn-auth-tabs { display: flex; border-bottom: 1px solid #e2e8f0; }\n        .bn-auth-tab { flex: 1; padding: 16px; text-align: center; background: #f8fafc; cursor: pointer; font-weight: 700; color: #64748b; transition: 0.3s; border-bottom: 3px solid transparent; }\n        .bn-auth-tab:hover { background: #f1f5f9; color: var(--bn-color); }\n        .bn-auth-tab.active { background: #fff; color: var(--bn-color); border-bottom-color: var(--bn-color); }\n        .bn-auth-content { padding: 30px; display: none; }\n        .bn-auth-content.active { display: block; animation: bnFadeIn 0.3s ease; }\n        @keyframes bnFadeIn { from { opacity: 0; } to { opacity: 1; } }\n        .bn-field { margin-bottom: 16px; }\n        .bn-label { display: block; font-size: 12px; font-weight: 700; color: #334155; margin-bottom: 6px; }\n        .bn-input, .bn-select { width: 100%; padding: 12px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 14px; transition: 0.2s; box-sizing: border-box; background: #fff; font-family: inherit; }\n        .bn-input:focus, .bn-select:focus { outline: none; border-color: var(--bn-color); box-shadow: 0 0 0 3px rgba(106, 0, 244, 0.1); }\n        .bn-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }\n        .bn-btn { width: 100%; padding: 14px; background: linear-gradient(135deg, var(--bn-color), var(--bn-color-light)); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 800; cursor: pointer; transition: 0.2s; margin-top: 10px; }\n        .bn-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(106, 0, 244, 0.3); }\n        .bn-btn:disabled { opacity: 0.7; cursor: not-allowed; }\n        .bn-btn-secondary { background: #f1f5f9; color: #475569; }\n        .bn-msg { margin-top: 15px; padding: 10px; border-radius: 6px; font-size: 13px; text-align: center; display: none; }\n        .bn-msg.error { background: #fee2e2; color: #dc2626; display: block; }\n        .bn-msg.success { background: #dcfce7; color: #166534; display: block; }\n        .bn-msg.info { background: #dbeafe; color: #1e40af; display: block; }\n        .bn-msg a { color: #6A00F4 !important; font-weight: 700 !important; text-decoration: underline !important; margin-left: 4px; cursor: pointer; }\n        .bn-type-selector { display: flex; gap: 10px; margin-bottom: 15px; }\n        .bn-type-opt { flex: 1; padding: 10px; border: 1px solid #e2e8f0; border-radius: 6px; text-align: center; cursor: pointer; font-size: 12px; font-weight: 600; }\n        .bn-type-opt.active { border-color: var(--bn-color); background: #faf5ff; color: var(--bn-color); }\n        .bn-type-opt input { display: none; }\n        .bn-2fa-inputs, .bn-reset-inputs { display: flex; gap: 12px; justify-content: center; margin: 20px 0; }\n        .bn-2fa-digit, .bn-reset-digit { width: 60px; height: 70px; text-align: center; font-size: 28px; font-weight: bold; border: 2px solid #e2e8f0; border-radius: 12px; }\n        .bn-2fa-digit:focus, .bn-reset-digit:focus { border-color: var(--bn-color); outline: none; }\n        .bn-stepper { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }\n        .bn-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }\n        .bn-step-circle { width: 36px; height: 36px; border-radius: 50%; background: #f1f5f9; color: #94a3b8; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; border: 2px solid #e2e8f0; }\n        .bn-step-label { font-size: 10px; font-weight: 700; color: #94a3b8; text-transform: uppercase; }\n        .bn-step.active .bn-step-circle { background: linear-gradient(135deg, var(--bn-color), var(--bn-color-light)); color: #fff; border-color: var(--bn-color); }\n        .bn-step.active .bn-step-label { color: var(--bn-color); }\n        .bn-step.completed .bn-step-circle { background: #16a34a; color: #fff; border-color: #16a34a; }\n        .bn-step.completed .bn-step-label { color: #16a34a; }\n        .bn-step-line { flex: 1; height: 2px; background: #e2e8f0; margin-bottom: 22px; }\n        .bn-step-line.completed { background: #16a34a; }\n        .bn-step-content { display: none; }\n        .bn-step-content.active { display: block; }\n        .bn-step-actions { display: flex; gap: 10px; margin-top: 16px; }\n        .bn-step-actions .bn-btn { margin-top: 0; }\n        .bn-cnpj-row { display: flex; gap: 8px; align-items: flex-end; }\n        .bn-cnpj-row .bn-field { flex: 1; margin-bottom: 0; }\n        .bn-cnpj-btn { background: linear-gradient(135deg, var(--bn-color), var(--bn-color-light)); color: #fff; border: none; padding: 12px 16px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 44px; }\n        .bn-cnpj-btn:disabled { opacity: 0.6; cursor: not-allowed; }\n        .bn-cnpj-btn.loading i { animation: bnSpin 1s linear infinite; }\n        @keyframes bnSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }\n        .bn-cnpj-status { font-size: 11px; font-weight: 600; padding: 6px 10px; border-radius: 6px; margin-top: 8px; display: none; }\n        .bn-cnpj-status.success { background: #dcfce7; color: #166534; display: block; }\n        .bn-cnpj-status.error { background: #fee2e2; color: #dc2626; display: block; }\n        .bn-cnpj-status.info { background: #dbeafe; color: #1e40af; display: block; }\n        .bn-cnpj-info { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 12px; margin-top: 12px; display: none; font-size: 12px; }\n        .bn-cnpj-info.active { display: block; }\n        .bn-cnpj-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }\n        .bn-autofill-hint { background: #f0f9ff; border: 1px solid #e9d5ff; border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; font-size: 11px; color: #6A00F4; font-weight: 600; }\n        .bn-password-wrapper { position: relative; }\n        .bn-password-wrapper .bn-input { padding-right: 45px; }\n        .bn-toggle-password { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 16px; }\n        .bn-toggle-password:hover { color: var(--bn-color); }\n        .bn-summary-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; margin-bottom: 16px; }\n        .bn-summary-box h4 { margin: 0 0 10px 0; font-size: 12px; font-weight: 800; color: #6A00F4; text-transform: uppercase; }\n        .bn-summary-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 12px; border-bottom: 1px dashed #e2e8f0; }\n        .bn-summary-item:last-child { border-bottom: none; }\n        .bn-forgot-link { text-align: right; margin-top: -8px; margin-bottom: 16px; }\n        .bn-forgot-link a { font-size: 12px; color: #6A00F4; text-decoration: none; font-weight: 600; }\n        .bn-forgot-link a:hover { text-decoration: underline; }\n        @media (max-width: 480px) { .bn-row-2 { grid-template-columns: 1fr; } }\n    <\/style><div class=\"bn-auth-wrapper\"><div class=\"bn-auth-tabs\"><div class=\"bn-auth-tab active\" onclick=\"switchAuthTab('register')\"><i class=\"fa fa-user-plus\"><\/i> Criar Conta<\/div><\/div><div id=\"tab-register\" class=\"bn-auth-content active\"><div class=\"bn-type-selector\"><label class=\"bn-type-opt active\" onclick=\"selectRegisterType('pessoal', this)\"><input type=\"radio\" name=\"reg_type\" value=\"pessoal\"  checked='checked'><i class=\"fa fa-user\"><\/i> Pessoa F\u00edsica<\/label><label class=\"bn-type-opt \" onclick=\"selectRegisterType('empresa', this)\"><input type=\"radio\" name=\"reg_type\" value=\"empresa\" ><i class=\"fa fa-building\"><\/i> Empresa<\/label><\/div><div id=\"register-pf-form\" style=\"display:block;\"><div id=\"pf-step-1\"><div class=\"bn-autofill-hint\"><i class=\"fa fa-info-circle\"><\/i> Informe seus dados. A senha ser\u00e1 enviada por e-mail.<\/div><div class=\"bn-field\"><label class=\"bn-label\">Nome Completo *<\/label><input type=\"text\" id=\"pf-first-name\" class=\"bn-input\" required placeholder=\"Seu nome completo\"><\/div><div class=\"bn-field\"><label class=\"bn-label\">E-mail *<\/label><input type=\"email\" id=\"pf-email\" class=\"bn-input\" required placeholder=\"seu@email.com\"><\/div><div class=\"bn-row-2\"><div class=\"bn-field\"><label class=\"bn-label\">Data de Nascimento *<\/label><input type=\"date\" id=\"pf-birth-date\" class=\"bn-input\" required max=\"2008-08-25\"><\/div><div class=\"bn-field\"><label class=\"bn-label\">G\u00eanero *<\/label><select id=\"pf-gender\" class=\"bn-select\" required><option value=\"\">Selecione...<\/option><option value=\"masculino\">Masculino<\/option><option value=\"feminino\">Feminino<\/option><option value=\"outro\">Outro<\/option><option value=\"prefiro_nao_informar\">Prefiro n\u00e3o informar<\/option><\/select><\/div><\/div><button type=\"button\" class=\"bn-btn\" onclick=\"pfNextStep()\"><i class=\"fa fa-arrow-right\"><\/i> Pr\u00f3ximo<\/button><div id=\"msg-pf-step1\" class=\"bn-msg\"><\/div><\/div><div id=\"pf-step-2\" style=\"display:none;\"><div style=\"text-align:center;margin-bottom:20px;\"><i class=\"fa fa-envelope-circle-check\" style=\"font-size:40px;color:var(--bn-color);\"><\/i><h3 style=\"margin:10px 0;color:#1e293b;\">Confirme seu E-mail<\/h3><p style=\"font-size:12px;color:#64748b;\">Enviamos um c\u00f3digo de <b>4 d\u00edgitos<\/b> e sua senha para <b id=\"pf-email-display\" style=\"color:var(--bn-color);\"><\/b><\/p><\/div><div class=\"bn-summary-box\" style=\"background:#f0f9ff; border-color:#bae6fd;\"><h4 style=\"color:#0369a1; margin-bottom:8px;\"><i class=\"fa fa-key\"><\/i> Sua Senha de Acesso<\/h4><div style=\"text-align:center;font-size:18px;font-weight:bold;color:#1e293b;letter-spacing:1px;padding:10px;background:#fff;border-radius:6px;border:1px dashed #cbd5e1;\" id=\"pf-password-display\">-<\/div><p style=\"font-size:11px;color:#64748b;margin-top:8px;text-align:center;\">Guarde esta senha. Voc\u00ea poder\u00e1 alter\u00e1-la ap\u00f3s o login.<\/p><\/div><div class=\"bn-2fa-inputs\"><input type=\"text\" maxlength=\"1\" class=\"bn-2fa-digit pf-2fa-digit\" inputmode=\"numeric\" onkeyup=\"pfMoveNext(this, 0)\"><input type=\"text\" maxlength=\"1\" class=\"bn-2fa-digit pf-2fa-digit\" inputmode=\"numeric\" onkeyup=\"pfMoveNext(this, 1)\"><input type=\"text\" maxlength=\"1\" class=\"bn-2fa-digit pf-2fa-digit\" inputmode=\"numeric\" onkeyup=\"pfMoveNext(this, 2)\"><input type=\"text\" maxlength=\"1\" class=\"bn-2fa-digit pf-2fa-digit\" inputmode=\"numeric\" onkeyup=\"pfMoveNext(this, 3)\"><\/div><input type=\"hidden\" id=\"pf-2fa-full-code\"><div class=\"bn-step-actions\" style=\"flex-direction:column;\"><button type=\"button\" class=\"bn-btn\" id=\"btn-pf-complete\" onclick=\"pfCompleteRegister()\"><i class=\"fa fa-check-circle\"><\/i> Concluir Cadastro<\/button><button type=\"button\" class=\"bn-btn bn-btn-secondary\" onclick=\"pfPrevStep()\"><i class=\"fa fa-arrow-left\"><\/i> Voltar<\/button><\/div><div id=\"msg-pf-step2\" class=\"bn-msg\"><\/div><\/div><\/div><div id=\"register-pj-wizard\" style=\"display:none;\"><div class=\"bn-stepper\"><div class=\"bn-step active\" data-step=\"1\"><div class=\"bn-step-circle\">1<\/div><div class=\"bn-step-label\">Dados<\/div><\/div><div class=\"bn-step-line\" data-line=\"1\"><\/div><div class=\"bn-step\" data-step=\"2\"><div class=\"bn-step-circle\">2<\/div><div class=\"bn-step-label\">CNPJ<\/div><\/div><div class=\"bn-step-line\" data-line=\"2\"><\/div><div class=\"bn-step\" data-step=\"3\"><div class=\"bn-step-circle\">3<\/div><div class=\"bn-step-label\">Confirma\u00e7\u00e3o<\/div><\/div><\/div><div class=\"bn-step-content active\" data-step-content=\"1\"><div class=\"bn-autofill-hint\"><i class=\"fa fa-info-circle\"><\/i> Informe os dados do respons\u00e1vel legal pela empresa.<\/div><div class=\"bn-field\"><label class=\"bn-label\">Nome Completo (Respons\u00e1vel) *<\/label><input type=\"text\" id=\"pj-first-name\" class=\"bn-input\" required placeholder=\"Nome do representante legal\"><\/div><div class=\"bn-field\"><label class=\"bn-label\">E-mail *<\/label><input type=\"email\" id=\"pj-email\" class=\"bn-input\" required placeholder=\"empresa@email.com\"><\/div><div class=\"bn-row-2\"><div class=\"bn-field\"><label class=\"bn-label\">Data de Nascimento *<\/label><input type=\"date\" id=\"pj-birth-date\" class=\"bn-input\" required max=\"2008-08-25\"><\/div><div class=\"bn-field\"><label class=\"bn-label\">G\u00eanero *<\/label><select id=\"pj-gender\" class=\"bn-select\" required><option value=\"\">Selecione...<\/option><option value=\"masculino\">Masculino<\/option><option value=\"feminino\">Feminino<\/option><option value=\"outro\">Outro<\/option><option value=\"prefiro_nao_informar\">Prefiro n\u00e3o informar<\/option><\/select><\/div><\/div><div class=\"bn-step-actions\"><button type=\"button\" class=\"bn-btn\" onclick=\"pjNextStep(1)\">Pr\u00f3ximo <i class=\"fa fa-arrow-right\"><\/i><\/button><\/div><div id=\"msg-pj-step1\" class=\"bn-msg\"><\/div><\/div><div class=\"bn-step-content\" data-step-content=\"2\"><div class=\"bn-autofill-hint\"><i class=\"fa fa-wand-magic-sparkles\"><\/i> Digite o CNPJ. A raz\u00e3o social ser\u00e1 preenchida automaticamente.<\/div><div class=\"bn-cnpj-row\"><div class=\"bn-field\"><label class=\"bn-label\">CNPJ<\/label><input type=\"text\" id=\"pj-cnpj\" class=\"bn-input\" placeholder=\"00.000.000\/0000-00\" maxlength=\"18\"><\/div><button type=\"button\" class=\"bn-cnpj-btn\" id=\"btn-search-cnpj\"><i class=\"fa fa-search\"><\/i> Buscar<\/button><\/div><div class=\"bn-cnpj-status\" id=\"cnpj-status\"><\/div><div class=\"bn-field\" style=\"margin-top:16px;\"><label class=\"bn-label\">Raz\u00e3o Social (autom\u00e1tico)<\/label><input type=\"text\" id=\"pj-razao-social\" class=\"bn-input\" readonly placeholder=\"Ser\u00e1 preenchido pelo CNPJ\" style=\"background:#f8fafc;\"><\/div><div class=\"bn-cnpj-info\" id=\"cnpj-info-box\"><b><i class=\"fa fa-building\"><\/i> Dados da Empresa<\/b><div class=\"bn-cnpj-detail\" id=\"cnpj-detail\"><\/div><\/div><div class=\"bn-step-actions\"><button type=\"button\" class=\"bn-btn bn-btn-secondary\" onclick=\"pjPrevStep(2)\"><i class=\"fa fa-arrow-left\"><\/i> Voltar<\/button><button type=\"button\" class=\"bn-btn\" onclick=\"pjNextStep(2)\">Pr\u00f3ximo <i class=\"fa fa-arrow-right\"><\/i><\/button><\/div><div id=\"msg-pj-step2\" class=\"bn-msg\"><\/div><\/div><div class=\"bn-step-content\" data-step-content=\"3\"><div style=\"text-align:center;margin-bottom:20px;\"><i class=\"fa fa-envelope-circle-check\" style=\"font-size:40px;color:var(--bn-color);\"><\/i><h3 style=\"margin:10px 0;color:#1e293b;\">Confirme seu E-mail<\/h3><p style=\"font-size:12px;color:#64748b;\">Enviamos c\u00f3digo de <b>4 d\u00edgitos<\/b> e senha para <b id=\"pj-email-display\" style=\"color:var(--bn-color);\"><\/b><\/p><\/div><div class=\"bn-summary-box\"><h4><i class=\"fa fa-clipboard-check\"><\/i> Resumo<\/h4><div class=\"bn-summary-item\"><b>Respons\u00e1vel:<\/b> <span id=\"summary-responsavel\">-<\/span><\/div><div class=\"bn-summary-item\"><b>CNPJ:<\/b> <span id=\"summary-cnpj\">-<\/span><\/div><div class=\"bn-summary-item\"><b>Raz\u00e3o Social:<\/b> <span id=\"summary-razao\">-<\/span><\/div><\/div><div class=\"bn-2fa-inputs\"><input type=\"text\" maxlength=\"1\" class=\"bn-2fa-digit pj-2fa-digit\" inputmode=\"numeric\" onkeyup=\"pjMoveNext(this, 0)\"><input type=\"text\" maxlength=\"1\" class=\"bn-2fa-digit pj-2fa-digit\" inputmode=\"numeric\" onkeyup=\"pjMoveNext(this, 1)\"><input type=\"text\" maxlength=\"1\" class=\"bn-2fa-digit pj-2fa-digit\" inputmode=\"numeric\" onkeyup=\"pjMoveNext(this, 2)\"><input type=\"text\" maxlength=\"1\" class=\"bn-2fa-digit pj-2fa-digit\" inputmode=\"numeric\" onkeyup=\"pjMoveNext(this, 3)\"><\/div><input type=\"hidden\" id=\"pj-2fa-full-code\"><div class=\"bn-step-actions\" style=\"flex-direction:column;\"><button type=\"button\" class=\"bn-btn\" id=\"btn-pj-complete\" onclick=\"pjCompleteRegister()\"><i class=\"fa fa-check-circle\"><\/i> Concluir<\/button><button type=\"button\" class=\"bn-btn bn-btn-secondary\" onclick=\"pjPrevStep(3)\"><i class=\"fa fa-arrow-left\"><\/i> Voltar<\/button><\/div><div id=\"msg-pj-step3\" class=\"bn-msg\"><\/div><\/div><\/div><\/div><div id=\"tab-2fa\" class=\"bn-auth-content\" style=\"text-align:center;\"><div style=\"margin-bottom:20px;\"><i class=\"fa fa-shield-alt\" style=\"font-size:40px;color:var(--bn-color);\"><\/i><h3 style=\"margin:10px 0;color:#1e293b;\">Verifica\u00e7\u00e3o de Seguran\u00e7a<\/h3><p style=\"font-size:13px;color:#64748b;\">Digite o c\u00f3digo de <b>4 d\u00edgitos<\/b> enviado por e-mail.<\/p><\/div><form id=\"form-2fa\"><input type=\"hidden\" name=\"user_id\" id=\"2fa-user-id\"><div class=\"bn-2fa-inputs\"><input type=\"text\" maxlength=\"1\" class=\"bn-2fa-digit\" inputmode=\"numeric\" onkeyup=\"moveNext(this, 0)\"><input type=\"text\" maxlength=\"1\" class=\"bn-2fa-digit\" inputmode=\"numeric\" onkeyup=\"moveNext(this, 1)\"><input type=\"text\" maxlength=\"1\" class=\"bn-2fa-digit\" inputmode=\"numeric\" onkeyup=\"moveNext(this, 2)\"><input type=\"text\" maxlength=\"1\" class=\"bn-2fa-digit\" inputmode=\"numeric\" onkeyup=\"moveNext(this, 3)\"><\/div><input type=\"hidden\" name=\"code\" id=\"2fa-full-code\"><button type=\"submit\" class=\"bn-btn\" id=\"btn-verify\"><i class=\"fa fa-check-circle\"><\/i> Verificar Acesso<\/button><div id=\"msg-2fa\" class=\"bn-msg\"><\/div><p style=\"margin-top:15px;font-size:11px;\"><a href=\"#\" onclick=\"switchAuthTab('login')\" style=\"color:#64748b;\">Voltar para Login<\/a><\/p><\/form><\/div><div id=\"tab-forgot\" class=\"bn-auth-content\" style=\"text-align:center;\"><div id=\"forgot-step-1\"><div style=\"margin-bottom:20px;\"><i class=\"fa fa-key\" style=\"font-size:40px;color:var(--bn-color);\"><\/i><h3 style=\"margin:10px 0;color:#1e293b;\">Recuperar Senha<\/h3><p style=\"font-size:13px;color:#64748b;\">Informe seu e-mail para receber o c\u00f3digo de verifica\u00e7\u00e3o.<\/p><\/div><div class=\"bn-field\" style=\"text-align:left;\"><label class=\"bn-label\">E-mail cadastrado<\/label><input type=\"email\" id=\"forgot-email\" class=\"bn-input\" required placeholder=\"seu@email.com\"><\/div><button type=\"button\" class=\"bn-btn\" id=\"btn-forgot-send\" onclick=\"sendForgotCode()\"><i class=\"fa fa-paper-plane\"><\/i> Enviar C\u00f3digo<\/button><div id=\"msg-forgot-1\" class=\"bn-msg\"><\/div><p style=\"margin-top:15px;font-size:11px;\"><a href=\"#\" onclick=\"switchAuthTab('login')\" style=\"color:#64748b;\">Voltar para Login<\/a><\/p><\/div><div id=\"forgot-step-2\" style=\"display:none;\"><div style=\"margin-bottom:20px;\"><i class=\"fa fa-shield-alt\" style=\"font-size:40px;color:var(--bn-color);\"><\/i><h3 style=\"margin:10px 0;color:#1e293b;\">Verifica\u00e7\u00e3o de Seguran\u00e7a<\/h3><p style=\"font-size:13px;color:#64748b;\">Digite o c\u00f3digo de <b>4 d\u00edgitos<\/b> e sua nova senha.<\/p><\/div><input type=\"hidden\" id=\"forgot-user-id\"><div class=\"bn-reset-inputs\"><input type=\"text\" maxlength=\"1\" class=\"bn-reset-digit\" inputmode=\"numeric\" onkeyup=\"resetMoveNext(this, 0)\"><input type=\"text\" maxlength=\"1\" class=\"bn-reset-digit\" inputmode=\"numeric\" onkeyup=\"resetMoveNext(this, 1)\"><input type=\"text\" maxlength=\"1\" class=\"bn-reset-digit\" inputmode=\"numeric\" onkeyup=\"resetMoveNext(this, 2)\"><input type=\"text\" maxlength=\"1\" class=\"bn-reset-digit\" inputmode=\"numeric\" onkeyup=\"resetMoveNext(this, 3)\"><\/div><input type=\"hidden\" id=\"forgot-full-code\"><div class=\"bn-field\" style=\"text-align:left;\"><label class=\"bn-label\">Nova Senha<\/label><div class=\"bn-password-wrapper\"><input type=\"password\" id=\"forgot-new-password\" class=\"bn-input\" required minlength=\"6\" placeholder=\"M\u00ednimo 6 caracteres\"><button type=\"button\" class=\"bn-toggle-password\" onclick=\"togglePassword('forgot-new-password', this)\"><i class=\"fa fa-eye\"><\/i><\/button><\/div><\/div><button type=\"button\" class=\"bn-btn\" id=\"btn-forgot-reset\" onclick=\"resetPassword()\"><i class=\"fa fa-check-circle\"><\/i> Redefinir Senha<\/button><div id=\"msg-forgot-2\" class=\"bn-msg\"><\/div><p style=\"margin-top:15px;font-size:11px;\"><a href=\"#\" onclick=\"showForgotPassword()\" style=\"color:#64748b;\">Voltar e reenviar c\u00f3digo<\/a><\/p><\/div><\/div><\/div><script>const bnNonce = \"bf8491b5fe\"; const ajaxUrl = \"https:\/\/bellanetfiber.com.br\/conta\/wp-admin\/admin-ajax.php\"; let currentPjStep = 1; let pjTempKey = \"\"; let pfTempKey = \"\";function togglePassword(id, btn) { const input = document.getElementById(id); const icon = btn.querySelector(\"i\"); if (input.type === \"password\") { input.type = \"text\"; icon.classList.remove(\"fa-eye\"); icon.classList.add(\"fa-eye-slash\"); } else { input.type = \"password\"; icon.classList.remove(\"fa-eye-slash\"); icon.classList.add(\"fa-eye\"); } }function switchAuthTab(tab) { document.querySelectorAll(\".bn-auth-tab\").forEach(t => t.classList.remove(\"active\")); document.querySelectorAll(\".bn-auth-content\").forEach(c => c.classList.remove(\"active\")); if (tab === \"login\") { document.querySelector(\".bn-auth-tab[onclick*=\\\"login\\\"]\").classList.add(\"active\"); document.getElementById(\"tab-login\").classList.add(\"active\"); } else if (tab === \"register\") { document.querySelector(\".bn-auth-tab[onclick*=\\\"register\\\"]\").classList.add(\"active\"); document.getElementById(\"tab-register\").classList.add(\"active\"); } }function showForgotPassword() { document.querySelectorAll(\".bn-auth-tab\").forEach(t => t.classList.remove(\"active\")); document.querySelectorAll(\".bn-auth-content\").forEach(c => c.classList.remove(\"active\")); document.getElementById(\"tab-forgot\").classList.add(\"active\"); document.getElementById(\"forgot-step-1\").style.display = \"block\"; document.getElementById(\"forgot-step-2\").style.display = \"none\"; document.getElementById(\"forgot-email\").value = \"\"; document.getElementById(\"msg-forgot-1\").style.display = \"none\"; }function selectRegisterType(type, el) { document.querySelectorAll(\".bn-type-opt\").forEach(o => o.classList.remove(\"active\")); el.classList.add(\"active\"); el.querySelector(\"input\").checked = true; document.getElementById(\"register-pf-form\").style.display = type === \"pessoal\" ? \"block\" : \"none\"; document.getElementById(\"register-pj-wizard\").style.display = type === \"empresa\" ? \"block\" : \"none\"; if (type === \"empresa\") { currentPjStep = 1; updatePjStepper(); initCnpjListeners(); } }function updatePjStepper() { document.querySelectorAll(\".bn-step\").forEach(step => { const n = parseInt(step.dataset.step); step.classList.remove(\"active\", \"completed\"); if (n < currentPjStep) step.classList.add(\"completed\"); if (n === currentPjStep) step.classList.add(\"active\"); }); document.querySelectorAll(\".bn-step-line\").forEach(line => { const n = parseInt(line.dataset.line); line.classList.toggle(\"completed\", n < currentPjStep); }); document.querySelectorAll(\".bn-step-content\").forEach(content => { const n = parseInt(content.dataset.stepContent); content.classList.toggle(\"active\", n === currentPjStep); }); }function pjNextStep(from) { if (from === 1) { const name = document.getElementById(\"pj-first-name\").value.trim(); const email = document.getElementById(\"pj-email\").value.trim(); const birthDate = document.getElementById(\"pj-birth-date\").value; const gender = document.getElementById(\"pj-gender\").value; if (!name || !email || !birthDate || !gender) { showMsg(\"msg-pj-step1\", \"error\", \"Preencha todos os campos.\"); return; } if (!validateBirthDate(birthDate)) { showMsg(\"msg-pj-step1\", \"error\", \"Voc\u00ea deve ter pelo menos 18 anos.\"); return; } currentPjStep = 2; updatePjStepper(); } else if (from === 2) { const cnpj = document.getElementById(\"pj-cnpj\").value.replace(\/\\D\/g, \"\"); const razao = document.getElementById(\"pj-razao-social\").value.trim(); if (cnpj.length !== 14) { showMsg(\"msg-pj-step2\", \"error\", \"CNPJ inv\u00e1lido.\"); return; } if (!razao) { showMsg(\"msg-pj-step2\", \"error\", \"Busque o CNPJ primeiro.\"); return; } pjSendCode(); } }function pjPrevStep(from) { if (from > 1) { currentPjStep = from - 1; updatePjStepper(); } }async function pjSendCode() { const msg = document.getElementById(\"msg-pj-step2\"); msg.className = \"bn-msg info\"; msg.style.display = \"block\"; msg.innerHTML = \"<i class=\\\"fa fa-spinner fa-spin\\\"><\/i> Enviando...\"; const fd = new FormData(); fd.append(\"action\", \"bn_register_send_code\"); fd.append(\"nonce\", bnNonce); fd.append(\"first_name\", document.getElementById(\"pj-first-name\").value); fd.append(\"email\", document.getElementById(\"pj-email\").value); fd.append(\"birth_date\", document.getElementById(\"pj-birth-date\").value); fd.append(\"gender\", document.getElementById(\"pj-gender\").value); try { const r = await fetch(ajaxUrl, { method: \"POST\", body: fd }).then(r => r.json()); if (r.success) { pjTempKey = r.data.temp_key; document.getElementById(\"pj-email-display\").textContent = document.getElementById(\"pj-email\").value; document.getElementById(\"summary-responsavel\").textContent = document.getElementById(\"pj-first-name\").value; document.getElementById(\"summary-cnpj\").textContent = document.getElementById(\"pj-cnpj\").value; document.getElementById(\"summary-razao\").textContent = document.getElementById(\"pj-razao-social\").value; currentPjStep = 3; updatePjStepper(); setTimeout(() => document.querySelector(\".pj-2fa-digit\").focus(), 300); } else { showMsg(\"msg-pj-step2\", \"error\", r.data.message); } } catch (e) { showMsg(\"msg-pj-step2\", \"error\", \"Erro de conex\u00e3o.\"); } }async function pjCompleteRegister() { const code = document.getElementById(\"pj-2fa-full-code\").value; const btn = document.getElementById(\"btn-pj-complete\"); const msg = document.getElementById(\"msg-pj-step3\"); if (code.length !== 4) { showMsg(\"msg-pj-step3\", \"error\", \"Digite o c\u00f3digo de 4 d\u00edgitos.\"); return; } btn.disabled = true; btn.innerHTML = \"<i class=\\\"fa fa-spinner fa-spin\\\"><\/i> Criando...\"; const pjData = { razao_social: document.getElementById(\"pj-razao-social\").value, cnpj: document.getElementById(\"pj-cnpj\").value }; const fd = new FormData(); fd.append(\"action\", \"bn_register_complete\"); fd.append(\"nonce\", bnNonce); fd.append(\"temp_key\", pjTempKey); fd.append(\"code\", code); fd.append(\"pj_data\", JSON.stringify(pjData)); try { const r = await fetch(ajaxUrl, { method: \"POST\", body: fd }).then(r => r.json()); if (r.success) { showMsg(\"msg-pj-step3\", \"success\", \"Conta criada! Redirecionando...\"); setTimeout(() => window.location.href = r.data.redirect, 1500); } else { showMsg(\"msg-pj-step3\", \"error\", r.data.message); btn.disabled = false; btn.innerHTML = \"<i class=\\\"fa fa-check-circle\\\"><\/i> Concluir\"; } } catch (e) { showMsg(\"msg-pj-step3\", \"error\", \"Erro de conex\u00e3o.\"); btn.disabled = false; } }function pjMoveNext(input, index) { input.value = input.value.replace(\/\\D\/g, \"\"); const inputs = document.querySelectorAll(\".pj-2fa-digit\"); let code = \"\"; inputs.forEach(i => code += i.value); document.getElementById(\"pj-2fa-full-code\").value = code; if (input.value && index < 3) inputs[index + 1].focus(); }function validateBirthDate(dateStr) { if (!dateStr) return false; const birth = new Date(dateStr); const today = new Date(); let age = today.getFullYear() - birth.getFullYear(); const m = today.getMonth() - birth.getMonth(); if (m < 0 || (m === 0 && today.getDate() < birth.getDate())) age--; return age >= 18; }async function pfNextStep() { const name = document.getElementById(\"pf-first-name\").value.trim(); const email = document.getElementById(\"pf-email\").value.trim(); const birthDate = document.getElementById(\"pf-birth-date\").value; const gender = document.getElementById(\"pf-gender\").value; if (!name || !email || !birthDate || !gender) { showMsg(\"msg-pf-step1\", \"error\", \"Preencha todos os campos.\"); return; } if (!validateBirthDate(birthDate)) { showMsg(\"msg-pf-step1\", \"error\", \"Voc\u00ea deve ter pelo menos 18 anos.\"); return; } const btn = event.target; btn.disabled = true; btn.innerHTML = \"<i class=\\\"fa fa-spinner fa-spin\\\"><\/i> Enviando...\"; const fd = new FormData(); fd.append(\"action\", \"bn_register_pf_send_code\"); fd.append(\"nonce\", bnNonce); fd.append(\"first_name\", name); fd.append(\"email\", email); fd.append(\"birth_date\", birthDate); fd.append(\"gender\", gender); try { const r = await fetch(ajaxUrl, { method: \"POST\", body: fd }).then(r => r.json()); if (r.success) { pfTempKey = r.data.temp_key; document.getElementById(\"pf-email-display\").textContent = email; document.getElementById(\"pf-password-display\").textContent = r.data.password; document.getElementById(\"pf-step-1\").style.display = \"none\"; document.getElementById(\"pf-step-2\").style.display = \"block\"; document.querySelector(\".pf-2fa-digit\").focus(); } else { showMsg(\"msg-pf-step1\", \"error\", r.data.message); btn.disabled = false; btn.innerHTML = \"<i class=\\\"fa fa-arrow-right\\\"><\/i> Pr\u00f3ximo\"; } } catch (e) { showMsg(\"msg-pf-step1\", \"error\", \"Erro de conex\u00e3o.\"); btn.disabled = false; btn.innerHTML = \"<i class=\\\"fa fa-arrow-right\\\"><\/i> Pr\u00f3ximo\"; } }function pfPrevStep() { document.getElementById(\"pf-step-2\").style.display = \"none\"; document.getElementById(\"pf-step-1\").style.display = \"block\"; document.getElementById(\"msg-pf-step1\").style.display = \"none\"; }async function pfCompleteRegister() { const code = document.getElementById(\"pf-2fa-full-code\").value; const btn = document.getElementById(\"btn-pf-complete\"); const msg = document.getElementById(\"msg-pf-step2\"); if (code.length !== 4) { showMsg(\"msg-pf-step2\", \"error\", \"Digite o c\u00f3digo de 4 d\u00edgitos.\"); return; } btn.disabled = true; btn.innerHTML = \"<i class=\\\"fa fa-spinner fa-spin\\\"><\/i> Criando...\"; const fd = new FormData(); fd.append(\"action\", \"bn_register_pf_complete\"); fd.append(\"nonce\", bnNonce); fd.append(\"temp_key\", pfTempKey); fd.append(\"code\", code); try { const r = await fetch(ajaxUrl, { method: \"POST\", body: fd }).then(r => r.json()); if (r.success) { showMsg(\"msg-pf-step2\", \"success\", \"Conta criada! Redirecionando...\"); setTimeout(() => window.location.href = r.data.redirect, 1500); } else { showMsg(\"msg-pf-step2\", \"error\", r.data.message); btn.disabled = false; btn.innerHTML = \"<i class=\\\"fa fa-check-circle\\\"><\/i> Concluir Cadastro\"; } } catch (e) { showMsg(\"msg-pf-step2\", \"error\", \"Erro de conex\u00e3o.\"); btn.disabled = false; } }function pfMoveNext(input, index) { input.value = input.value.replace(\/\\D\/g, \"\"); const inputs = document.querySelectorAll(\".pf-2fa-digit\"); let code = \"\"; inputs.forEach(i => code += i.value); document.getElementById(\"pf-2fa-full-code\").value = code; if (input.value && index < 3) inputs[index + 1].focus(); }document.querySelectorAll(\".pf-2fa-digit\").forEach((input, idx) => { input.addEventListener(\"keydown\", function(e) { if (e.key === \"Backspace\" && !this.value && idx > 0) { document.querySelectorAll(\".pf-2fa-digit\")[idx - 1].focus(); } }); });function maskCnpj(v) { return v.replace(\/\\D\/g,\"\").replace(\/^(\\d{2})(\\d)\/, \"$1.$2\").replace(\/^(\\d{2})\\.(\\d{3})(\\d)\/, \"$1.$2.$3\").replace(\/\\.(\\d{3})(\\d)\/, \".$1\/$2\").replace(\/(\\d{4})(\\d)\/, \"$1-$2\").substring(0,18); }document.addEventListener(\"input\", function(e) { if (e.target.id === \"pj-cnpj\") e.target.value = maskCnpj(e.target.value); });function showCnpjStatus(type, html) { const el = document.getElementById(\"cnpj-status\"); if (!el) return; el.className = \"bn-cnpj-status \" + type; el.innerHTML = html; if (type === \"success\") setTimeout(() => el.style.display = \"none\", 5000); }async function buscarCNPJ() { const cnpjInput = document.getElementById(\"pj-cnpj\"); const btn = document.getElementById(\"btn-search-cnpj\"); const infoBox = document.getElementById(\"cnpj-info-box\"); const detail = document.getElementById(\"cnpj-detail\"); if (!cnpjInput || !btn) return; const cnpj = cnpjInput.value.replace(\/\\D\/g, \"\"); if (cnpj.length !== 14) { showCnpjStatus(\"error\", \"<i class=\\\"fa fa-circle-exclamation\\\"><\/i> CNPJ inv\u00e1lido.\"); return; } btn.classList.add(\"loading\"); btn.disabled = true; btn.innerHTML = \"<i class=\\\"fa fa-spinner\\\"><\/i> Buscando...\"; showCnpjStatus(\"info\", \"<i class=\\\"fa fa-spinner fa-spin\\\"><\/i> Consultando...\"); try { const controller = new AbortController(); const timeoutId = setTimeout(() => controller.abort(), 10000); const response = await fetch(\"https:\/\/brasilapi.com.br\/api\/cnpj\/v1\/\" + cnpj, { signal: controller.signal, headers: { \"Accept\": \"application\/json\" } }); clearTimeout(timeoutId); if (!response.ok) throw new Error(\"HTTP \" + response.status); const data = await response.json(); const razaoInput = document.getElementById(\"pj-razao-social\"); if (razaoInput && data.razao_social) { razaoInput.value = data.razao_social; razaoInput.style.background = \"#dcfce7\"; setTimeout(() => razaoInput.style.background = \"#f8fafc\", 1500); } if (infoBox && detail) { const sit = data.descricao_situacao_cadastal || \"-\"; const sitColor = sit === \"ATIVA\" ? \"#16a34a\" : \"#dc2626\"; detail.innerHTML = \"<span><b>Raz\u00e3o Social:<\/b> \" + (data.razao_social || \"-\") + \"<\/span><span><b>Fantasia:<\/b> \" + (data.nome_fantasia || \"-\") + \"<\/span><span><b>Situa\u00e7\u00e3o:<\/b> <span style=\\\"color:\" + sitColor + \";\\\">\" + sit + \"<\/span><\/span><span><b>Abertura:<\/b> \" + (data.data_inicio_atividade || \"-\") + \"<\/span>\"; infoBox.classList.add(\"active\"); } showCnpjStatus(\"success\", \"<i class=\\\"fa fa-circle-check\\\"><\/i> Preenchido!\"); } catch (err) { let errorMsg = \"Erro ao buscar CNPJ.\"; if (err.name === \"AbortError\") errorMsg = \"Tempo esgotado.\"; else if (err.message.includes(\"404\")) errorMsg = \"CNPJ n\u00e3o encontrado.\"; else if (err.message.includes(\"Failed to fetch\")) errorMsg = \"Erro de conex\u00e3o.\"; showCnpjStatus(\"error\", \"<i class=\\\"fa fa-circle-exclamation\\\"><\/i> \" + errorMsg); if (infoBox) infoBox.classList.remove(\"active\"); } finally { btn.classList.remove(\"loading\"); btn.disabled = false; btn.innerHTML = \"<i class=\\\"fa fa-search\\\"><\/i> Buscar\"; } }let cnpjListenersInitialized = false; function initCnpjListeners() { if (cnpjListenersInitialized) return; const cnpjInput = document.getElementById(\"pj-cnpj\"); const btnSearchCnpj = document.getElementById(\"btn-search-cnpj\"); if (btnSearchCnpj) { btnSearchCnpj.addEventListener(\"click\", function(e) { e.preventDefault(); buscarCNPJ(); }); } if (cnpjInput) { cnpjInput.addEventListener(\"blur\", function() { const cnpj = this.value.replace(\/\\D\/g, \"\"); if (cnpj.length === 14) buscarCNPJ(); }); } cnpjListenersInitialized = true; }document.addEventListener(\"DOMContentLoaded\", function() { const pjWizard = document.getElementById(\"register-pj-wizard\"); if (pjWizard && pjWizard.style.display !== \"none\") { initCnpjListeners(); } });function showMsg(id, type, text) { const el = document.getElementById(id); if (!el) return; el.className = \"bn-msg \" + type; el.innerHTML = text; el.style.display = \"block\"; if (type === \"success\") setTimeout(() => el.style.display = \"none\", 5000); }function moveNext(input, index) { input.value = input.value.replace(\/\\D\/g, \"\"); const inputs = document.querySelectorAll(\"#form-2fa .bn-2fa-digit\"); let code = \"\"; inputs.forEach(i => code += i.value); document.getElementById(\"2fa-full-code\").value = code; if (input.value && index < 3) inputs[index + 1].focus(); }async function sendForgotCode() { const email = document.getElementById(\"forgot-email\").value.trim(); const btn = document.getElementById(\"btn-forgot-send\"); const msg = document.getElementById(\"msg-forgot-1\"); if (!email) { showMsg(\"msg-forgot-1\", \"error\", \"Informe o e-mail.\"); return; } btn.disabled = true; btn.innerHTML = \"<i class=\\\"fa fa-spinner fa-spin\\\"><\/i> Enviando...\"; const fd = new FormData(); fd.append(\"action\", \"bn_forgot_send_code\"); fd.append(\"nonce\", bnNonce); fd.append(\"email\", email); try { const r = await fetch(ajaxUrl, { method: \"POST\", body: fd }).then(r => r.json()); if (r.success) { document.getElementById(\"forgot-user-id\").value = r.data.user_id; document.getElementById(\"forgot-step-1\").style.display = \"none\"; document.getElementById(\"forgot-step-2\").style.display = \"block\"; document.querySelector(\".bn-reset-digit\").focus(); showMsg(\"msg-forgot-2\", \"success\", r.data.message); } else { showMsg(\"msg-forgot-1\", \"error\", r.data.message); btn.disabled = false; btn.innerHTML = \"<i class=\\\"fa fa-paper-plane\\\"><\/i> Enviar C\u00f3digo\"; } } catch (e) { showMsg(\"msg-forgot-1\", \"error\", \"Erro de conex\u00e3o.\"); btn.disabled = false; btn.innerHTML = \"<i class=\\\"fa fa-paper-plane\\\"><\/i> Enviar C\u00f3digo\"; } }async function resetPassword() { const code = document.getElementById(\"forgot-full-code\").value; const userId = document.getElementById(\"forgot-user-id\").value; const newPass = document.getElementById(\"forgot-new-password\").value; const btn = document.getElementById(\"btn-forgot-reset\"); const msg = document.getElementById(\"msg-forgot-2\"); if (code.length !== 4) { showMsg(\"msg-forgot-2\", \"error\", \"Digite o c\u00f3digo de 4 d\u00edgitos.\"); return; } if (newPass.length < 6) { showMsg(\"msg-forgot-2\", \"error\", \"A senha deve ter no m\u00ednimo 6 caracteres.\"); return; } btn.disabled = true; btn.innerHTML = \"<i class=\\\"fa fa-spinner fa-spin\\\"><\/i> Redefinindo...\"; const fd = new FormData(); fd.append(\"action\", \"bn_forgot_reset\"); fd.append(\"nonce\", bnNonce); fd.append(\"user_id\", userId); fd.append(\"code\", code); fd.append(\"new_password\", newPass); try { const r = await fetch(ajaxUrl, { method: \"POST\", body: fd }).then(r => r.json()); if (r.success) { showMsg(\"msg-forgot-2\", \"success\", r.data.message); setTimeout(() => switchAuthTab(\"login\"), 2500); } else { showMsg(\"msg-forgot-2\", \"error\", r.data.message); btn.disabled = false; btn.innerHTML = \"<i class=\\\"fa fa-check-circle\\\"><\/i> Redefinir Senha\"; } } catch (e) { showMsg(\"msg-forgot-2\", \"error\", \"Erro de conex\u00e3o.\"); btn.disabled = false; btn.innerHTML = \"<i class=\\\"fa fa-check-circle\\\"><\/i> Redefinir Senha\"; } }function resetMoveNext(input, index) { input.value = input.value.replace(\/\\D\/g, \"\"); const inputs = document.querySelectorAll(\".bn-reset-digit\"); let code = \"\"; inputs.forEach(i => code += i.value); document.getElementById(\"forgot-full-code\").value = code; if (input.value && index < 3) inputs[index + 1].focus(); }document.querySelectorAll(\".bn-reset-digit\").forEach((input, idx) => { input.addEventListener(\"keydown\", function(e) { if (e.key === \"Backspace\" && !this.value && idx > 0) { document.querySelectorAll(\".bn-reset-digit\")[idx - 1].focus(); } }); });document.getElementById(\"form-login\").addEventListener(\"submit\", function(e) { e.preventDefault(); const btn = document.getElementById(\"btn-login\"); const fd = new FormData(this); fd.append(\"action\", \"bn_do_login\"); fd.append(\"nonce\", bnNonce); btn.disabled = true; btn.innerHTML = \"<i class=\\\"fa fa-spinner fa-spin\\\"><\/i> Processando...\"; fetch(ajaxUrl, { method: \"POST\", body: fd }).then(r => r.json()).then(data => { btn.disabled = false; btn.innerHTML = \"<i class=\\\"fa fa-sign-in-alt\\\"><\/i> Entrar\"; if (data.success) { document.getElementById(\"2fa-user-id\").value = data.data.user_id; document.querySelectorAll(\".bn-auth-content\").forEach(c => c.classList.remove(\"active\")); document.getElementById(\"tab-2fa\").classList.add(\"active\"); document.querySelector(\"#form-2fa .bn-2fa-digit\").focus(); } else { showMsg(\"msg-login\", \"error\", data.data.message); } }); });document.getElementById(\"form-2fa\").addEventListener(\"submit\", function(e) { e.preventDefault(); const btn = document.getElementById(\"btn-verify\"); const fd = new FormData(this); fd.append(\"action\", \"bn_verify_2fa\"); fd.append(\"nonce\", bnNonce); btn.disabled = true; btn.innerHTML = \"<i class=\\\"fa fa-spinner fa-spin\\\"><\/i> Verificando...\"; fetch(ajaxUrl, { method: \"POST\", body: fd }).then(r => r.json()).then(data => { btn.disabled = false; btn.innerHTML = \"<i class=\\\"fa fa-check-circle\\\"><\/i> Verificar\"; if (data.success) { showMsg(\"msg-2fa\", \"success\", \"Sucesso! Redirecionando...\"); setTimeout(() => window.location.href = data.data.redirect, 1500); } else { showMsg(\"msg-2fa\", \"error\", data.data.message); document.querySelectorAll(\"#form-2fa .bn-2fa-digit\").forEach(i => i.value = \"\"); } }); });<\/script><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Menu Lateral Bellanet Fiber Bellanetfiber In\u00edcio Acessar Conta Recursos Planos<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"footnotes":""},"class_list":["post-2891","page","type-page","status-publish","hentry","content-box content-box-wrapper"],"_links":{"self":[{"href":"https:\/\/bellanetfiber.com.br\/conta\/wp-json\/wp\/v2\/pages\/2891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bellanetfiber.com.br\/conta\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bellanetfiber.com.br\/conta\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bellanetfiber.com.br\/conta\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bellanetfiber.com.br\/conta\/wp-json\/wp\/v2\/comments?post=2891"}],"version-history":[{"count":10,"href":"https:\/\/bellanetfiber.com.br\/conta\/wp-json\/wp\/v2\/pages\/2891\/revisions"}],"predecessor-version":[{"id":2901,"href":"https:\/\/bellanetfiber.com.br\/conta\/wp-json\/wp\/v2\/pages\/2891\/revisions\/2901"}],"wp:attachment":[{"href":"https:\/\/bellanetfiber.com.br\/conta\/wp-json\/wp\/v2\/media?parent=2891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}