/* ==========================================================================
   Login CRM (CPF + senha + verificação em 2 etapas)
   CSS isolado: não depende de Bootstrap nem de CSS global do CRM.
   Visual baseado no multiCRM (Login / Login2FA). Todas as classes usam o
   prefixo "lg-" para não colidir com nenhum outro estilo.
   ========================================================================== */

.lg-page {
    --lg-laranja: #FF7500;
    --lg-laranja-escuro: #DB5E00;
    --lg-verde-claro: #00B76C;
    --lg-vermelho: #dc4856;
    --lg-cinza-300: #DEE2E6;
    --lg-cinza-400: #CED4DA;
    --lg-cinza-600: #6C757D;
    --lg-cinza-700: #495057;
    --lg-cinza-800: #343A40;
    --lg-cinza-900: #212529;
    margin: 0;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--lg-cinza-900);
    background: #fff;
    text-align: left;
}

.lg-page *, .lg-page *::before, .lg-page *::after { box-sizing: border-box; }

.lg-page h1, .lg-page h3, .lg-page h5, .lg-page h6 {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.lg-page a { text-decoration: none; color: var(--lg-laranja); transition: all ease-in-out .25s; }
.lg-page a:hover { color: var(--lg-laranja-escuro); }
.lg-page img { max-width: 100%; }
.lg-page hr { border: 0; border-top: 1px solid var(--lg-cinza-300); margin: 1rem 0; }
.lg-hidden { display: none !important; }

/* ---------- layout em duas colunas ---------- */
.lg-row { display: flex; min-height: 100vh; }
.lg-col-imagem { flex: 1 1 50%; min-width: 0; }
.lg-col-form { flex: 1 1 50%; min-width: 0; display: flex; align-items: flex-start; }

.lg-imagem {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-color: #2b2b2b;
}

.lg-imagem-conteudo { height: 100vh; display: flex; flex-direction: column; }

.lg-logo { width: 280px; margin: 40px auto auto; display: block; }

.lg-slogan {
    font-size: 25px;
    margin-top: auto !important;
    text-align: right;
    color: #fff;
    font-weight: 500 !important;
    padding-right: 70px;
    padding-bottom: 60px;
    text-shadow: 2px 2px 5px rgb(0 0 0 / .7);
}
.lg-slogan span { max-width: 500px; display: inline-block; }

.lg-conteudo { margin-left: 115px; margin-top: 70px; width: 320px; max-width: 100%; }
.lg-conteudo h3 { margin-bottom: 30px; font-size: 28px; }

.lg-topo-mobile { display: none; }

/* ---------- formulário ---------- */
.lg-form { margin-top: 37px; }

.lg-label { display: inline-block; margin-bottom: .5rem; }

.lg-input {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font: inherit;
    line-height: 1.5;
    color: var(--lg-cinza-900);
    background: #fff;
    border: 1px solid var(--lg-cinza-400);
    border-radius: .375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.lg-input:focus {
    outline: 0;
    border-color: var(--lg-laranja);
    box-shadow: 0 0 0 .2rem rgb(255 117 0 / .25);
}

.lg-campo + .lg-campo { margin-top: 1.5rem; }

.lg-check { margin-top: 10px; display: flex; align-items: center; gap: .5rem; }
.lg-check input { width: 1rem; height: 1rem; accent-color: var(--lg-laranja); margin: 0; }
.lg-check label { cursor: pointer; }

.lg-captcha { margin-top: 20px; }

.lg-btn {
    display: block;
    width: 100%;
    margin-top: 30px;
    padding: .7rem 1.5rem;
    font: inherit;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border-radius: .375rem;
    border: 1px solid transparent;
    box-shadow: 1px 1px 0 rgb(0 0 0 / .05);
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}
.lg-btn:disabled { cursor: not-allowed; opacity: .65; box-shadow: none; }

.lg-btn-primario { color: #fff; background: var(--lg-laranja); border-color: var(--lg-laranja); }
.lg-btn-primario:hover:not(:disabled) { background: var(--lg-laranja-escuro); border-color: var(--lg-laranja-escuro); }

.lg-btn-contorno { color: var(--lg-cinza-700); background: transparent; border-color: var(--lg-cinza-400); margin-top: 10px; }
.lg-btn-contorno:hover:not(:disabled) { color: var(--lg-cinza-800); border-color: var(--lg-cinza-600); }
.lg-btn-contorno:disabled { background: #fff; font-weight: 400; }

.lg-erro { color: var(--lg-vermelho); margin-top: 20px; font-size: 15px; min-height: 1px; }

.lg-esqueci { margin-top: 50px; margin-bottom: 50px; }
.lg-esqueci a { color: var(--lg-cinza-900); font-weight: 500; }
.lg-esqueci a:hover { color: var(--lg-laranja); }

.lg-primeiro { margin-top: 50px; }
.lg-primeiro-titulo { display: flex; align-items: center; gap: 5px; margin-bottom: 15px; }
.lg-primeiro-titulo svg { width: 24px; height: 24px; color: var(--lg-laranja); }
.lg-primeiro-titulo h3 { font-size: 18px; margin: 2px 0 0; }
.lg-criar a {
    display: flex; justify-content: space-between; align-items: center;
    color: var(--lg-cinza-900); padding-bottom: 5px; font-weight: 500;
    border-bottom: 2px solid transparent;
}
.lg-criar a:hover { border-bottom-color: var(--lg-laranja); color: var(--lg-cinza-900); }

/* ---------- etapas de verificação ---------- */
.lg-etapa { margin-bottom: 20px; color: var(--lg-cinza-600); text-transform: uppercase; font-weight: 400 !important; font-size: 14px; }
.lg-conteudo h3.lg-titulo-etapa { margin-bottom: 15px; font-size: 24px; }
.lg-texto { font-size: 15px; }
.lg-destaque { color: var(--lg-laranja); font-weight: 600; }

.lg-metodos { margin-top: 40px; display: flex; flex-direction: column; gap: 0; }
.lg-metodo {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 12px 0; font: inherit; text-align: left;
    color: var(--lg-cinza-900); background: none; border: 0;
    border-bottom: 2px solid transparent; cursor: pointer;
}
/* Neutraliza estilos de <button> vindos do tema global (MetropolisCRM/DevExpress). */
.lg-page button.lg-metodo, .lg-page button.lg-link-voltar {
    -webkit-appearance: none; appearance: none;
    box-shadow: none; text-shadow: none; border-radius: 0; outline: 0; margin: 0;
    background: none; background-image: none; border-style: solid; border-width: 0;
}
.lg-page button.lg-metodo { border-bottom: 2px solid transparent; }
.lg-page button.lg-link-voltar { border: 0; }
.lg-page button.lg-metodo:focus, .lg-page button.lg-link-voltar:focus { box-shadow: none; outline: 0; }
.lg-page button.lg-metodo:focus-visible, .lg-page button.lg-link-voltar:focus-visible { outline: 2px solid var(--lg-laranja); outline-offset: 2px; }
.lg-metodo:hover:not(:disabled) { border-bottom-color: var(--lg-laranja); }
.lg-page button.lg-metodo:hover:not(:disabled) { border-bottom-color: var(--lg-laranja); }
.lg-metodo:disabled { opacity: .6; cursor: wait; }
.lg-metodo-dados { display: flex; align-items: center; gap: 25px; min-width: 0; }
.lg-metodo-dados svg { width: 18px; height: 18px; flex: 0 0 auto; }
.lg-metodo-titulo { font-size: 13px; color: var(--lg-cinza-600); min-width: 0; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.lg-metodo-rotulo { display: block; font-family: "Montserrat", Arial, Helvetica, sans-serif; font-weight: 700; font-size: 15px; margin-bottom: 3px; color: var(--lg-cinza-900); }

.lg-codigo { margin-top: 24px; text-align: center; letter-spacing: .5em; font-size: 1.5rem; font-weight: 600; }

.lg-ajuda {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 50px; padding: 4px 16px 4px 4px;
    color: var(--lg-cinza-900) !important; font-size: 15px; border: 1px solid var(--lg-cinza-400); border-radius: 999px;
}
.lg-ajuda:hover { border-color: var(--lg-cinza-600); }
.lg-ajuda i {
    display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; flex: 0 0 45px;
    color: #fff; background: var(--lg-verde-claro); border-radius: 999px;
}
.lg-ajuda i svg { width: 22px; height: 22px; }

.lg-link-voltar {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 30px; padding: 0;
    font: inherit; font-size: 15px; color: var(--lg-cinza-700); background: none; border: 0; cursor: pointer;
}
.lg-link-voltar:hover { color: var(--lg-laranja); }
.lg-link-voltar svg { width: 14px; height: 14px; }

/* ---------- carregando ---------- */
.lg-carregando {
    display: none; position: fixed; z-index: 10000; inset: 0;
    background: rgb(255 255 255 / .8); align-items: center; justify-content: center;
}
.lg-carregando.lg-ativo { display: flex; }
.lg-spinner {
    width: 44px; height: 44px; border-radius: 50%;
    border: 4px solid var(--lg-cinza-300); border-top-color: var(--lg-laranja);
    animation: lg-gira .8s linear infinite;
}
@keyframes lg-gira { to { transform: rotate(360deg); } }

/* ---------- responsivo ---------- */
@media (max-width: 991px) {
    .lg-col-imagem { display: none; }
    .lg-row { display: block; min-height: 0; }
    .lg-topo-mobile {
        display: flex; align-items: center; position: fixed; top: 0; left: 0; width: 100%; height: 5.3rem;
        padding: 0 1.875rem; z-index: 999; background: #fff; box-shadow: 0 0 5px rgb(0 0 0 / .1);
    }
    .lg-topo-mobile img { height: 50px; }
    .lg-col-form { padding: 5.3rem 1.875rem 2rem; display: block; }
    .lg-conteudo { width: 100%; margin: 40px 0 0; }
    .lg-conteudo h3 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .lg-spinner { animation-duration: 2s; }
}
