.builder-template-login {
    --sipec-brand: #00314a;
    --sipec-brand-mid: #004a70;
    --sipec-accent: #ff5722;
    --sipec-accent-hover: #e64a19;

    --sipec-bg-left: #09090B;
    --sipec-bg-right: #fafafa;
    --sipec-bg-card: #ffffff;

    --sipec-text-primary: #09090b;
    --sipec-text-secondary: #71717a;
    --sipec-text-muted: #a1a1aa;
    --sipec-text-inverted: #ffffff;

    --sipec-border: #e4e4e7;
    --sipec-border-focus: #00314a;
    --sipec-ring: rgba(0, 49, 74, 0.12);

    --sipec-input-bg: #ffffff;
    --sipec-input-border: #e4e4e7;

    --sipec-radius-sm: 8px;
    --sipec-radius-md: 10px;
    --sipec-radius-lg: 14px;
    --sipec-radius-xl: 20px;

    --sipec-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --sipec-shadow-md: 0 4px 16px 0 rgba(0, 0, 0, 0.08);
    --sipec-shadow-lg: 0 8px 32px 0 rgba(0, 0, 0, 0.12);

    --sipec-font: 'Inter', 'Noto Sans', system-ui, -apple-system, sans-serif;

    --sipec-field-height: 42px;
    --sipec-btn-height: 44px;
}

.dark.builder-template-login,
.dark .builder-template-login {
    --sipec-bg-right: #09090b;
    --sipec-bg-card: #09090b;
    --sipec-text-primary: #fafafa;
    --sipec-text-secondary: #71717a;
    --sipec-text-muted: #52525b;
    --sipec-border: #27272a;
    --sipec-border-focus: #378add;
    --sipec-ring: rgba(55, 138, 221, 0.15);
    --sipec-input-bg: #18181b;
    --sipec-input-border: #27272a;
}

.builder-template-login *,
.builder-template-login *::before,
.builder-template-login *::after {
    box-sizing: border-box;
}

.builder-template-login body {
    margin: 0;
    padding: 0;
    font-family: var(--sipec-font);
}

/* -----------------------------------------------------------------------
   2. CONTAINER GERAL
----------------------------------------------------------------------- */
/* 
.builder-template-login .container-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: var(--sipec-bg-right);
    padding: 0;
    overflow: hidden;
}

.builder-template-login body .container-main .container-live {
    background: none !important;
} */

/* -----------------------------------------------------------------------
   3. PAINEL EXTERNO 
----------------------------------------------------------------------- */

.builder-template-login .container-login .panel-login {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 960px;
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background: transparent;
}

@media (min-width: 900px) {
    .builder-template-login .container-login .panel-login {
        min-height: 600px;
        max-height: 720px;
        border-radius: var(--sipec-radius-xl);
        box-shadow: var(--sipec-shadow-lg),
            0 0 0 1px rgba(0, 0, 0, 0.06);
    }


}

/* -----------------------------------------------------------------------
   4. PAINEL ESQUERDO 
----------------------------------------------------------------------- */

.builder-template-login .container-login .panel-login .info-login {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 48px;
    background: #1c3f7927;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 50%;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

/* Grid sutil no fundo */
/* .builder-template-login .container-login .panel-login .info-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.089) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.068) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
} */


.builder-template-login .container-login .panel-login .info-login::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;

    background: radial-gradient(circle, rgba(41, 79, 247, 0.18), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}


.builder-template-login .container-login .panel-login .info-login::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    bottom: -120px;
    left: -120px;

    background: radial-gradient(circle, rgba(41, 79, 247, 0.18), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.builder-template-login .container-login .panel-login .info-login .login-logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    height: auto;
}

.builder-template-login .container-login .panel-login .info-login .login-subtitle {
    font-size: 22px;
    font-weight: 700;
    color: var(--sipec-text-inverted);
    letter-spacing: 0.5px;
    background: none;
    height: auto;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-tagline {
    font-size: 12px;
    margin-top: 6px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgb(255, 255, 255);
    font-weight: 500;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);

}


.builder-template-login .container-login .panel-login .info-login .login-logo::after {
    content: 'Sistemas Integrados de Planejamento e Execução Contábil';
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgb(255, 255, 255);
    font-weight: 500;
    margin-top: 5px;
}


.builder-template-login .container-login .panel-login .info-login .login-image {
    display: none !important;
}


/* Texto hero */
.builder-template-login .container-login .panel-login .info-login .login-details {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    justify-content: flex-start;

}

.builder-template-login .container-login .panel-login .info-login .login-details h3 {
    font-size: 30px;
    font-weight: 600;
    color: var(--sipec-text-inverted);
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.5px;
}

.builder-template-login .container-login .panel-login .info-login .login-details div {
    font-size: 14px;
    line-height: 1.7;
    max-width: 300px;
}

/* Badges de status no rodapé esquerdo */
.builder-template-login .container-login .panel-login .info-login .login-details::after {
    content: '';
    display: block;
    margin-top: 28px;
    height: 1px;

}

/* -----------------------------------------------------------------------
   5. PAINEL DIREITO — Formulário
----------------------------------------------------------------------- */

.builder-template-login .container-login .panel-login .login-content {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    background: var(--sipec-bg-right);
}

.builder-template-login .container-login .panel-login .login-content #adianti_div_content {
    width: 100%;
    max-width: 420px;
}

.builder-template-login .login-content .login-form-wrapper {
    width: 100%;
    max-width: 300px;
}

/* -----------------------------------------------------------------------
   6. CARD DO FORMULÁRIO ADIANTI
----------------------------------------------------------------------- */

.builder-template-login .container-login .panel-login .login-content .card.panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;

}

.builder-template-login .container-login .panel-login .login-content .card-body {
    background: transparent !important;
    padding: 0 !important;
}

.builder-template-login .container-login .panel-login .login-content .card-header {
    background: transparent !important;
    border: none !important;
    padding: 0 0 4px 0 !important;
}

.builder-template-login .container-login .panel-login .login-content .card-header .card-title,
.builder-template-login .container-login .panel-login .login-content .panel-title {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: var(--sipec-text-primary) !important;
    letter-spacing: -0.3px !important;
    line-height: 1.2 !important;
}

.builder-template-login .container-login .panel-login .login-content .card-header::before {
    content: '';
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--sipec-accent);
    margin-bottom: 6px;
}

/* -----------------------------------------------------------------------
   7. CAMPOS DO FORMULÁRIO
----------------------------------------------------------------------- */

.builder-template-login .container-login .tfield::placeholder,
.builder-template-login .container-login .form-control::placeholder {
    color: #d4d4d8 !important;
}

.builder-template-login .container-login .tfield:focus,
.builder-template-login .container-login .form-control:focus {
    border-color: var(--sipec-border-focus) !important;
    box-shadow: 0 0 0 3px var(--sipec-ring) !important;
    outline: none !important;
    background: var(--sipec-input-bg) !important;
}

.builder-template-login .container-login .login-avatar {

    color: #a1a1aa !important;
}

.builder-template-login .container-login .display-flex {
    position: relative;
    align-items: center;
}


/* -----------------------------------------------------------------------
   9. LINKS DE RODAPÉ 
----------------------------------------------------------------------- */

.builder-template-login .container-login .panel-login .login-content>div[style*="text-align:center"] {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.builder-template-login .container-login .panel-login .login-content>div[style*="text-align:center"] a {
    font-size: 12.5px !important;
    color: var(--sipec-text-secondary) !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s;
    font-family: var(--sipec-font);
}

.builder-template-login .container-login .panel-login .login-content>div[style*="text-align:center"] a:hover {
    color: var(--sipec-text-primary) !important;
}

.builder-template-login .container-login .panel-login .login-content>div[style*="text-align:center"] a i {
    font-size: 12px !important;
}

.builder-template-login .container-login .panel-login .login-content>div[style*="text-align:center"] a+a::before {
    content: '·';
    margin-right: 16px;
    color: var(--sipec-border);
}

/* -----------------------------------------------------------------------
   10. NOTA DE SEGURANÇA 
----------------------------------------------------------------------- */

.builder-template-login .container-login .panel-login .login-content::after {
    content: 'Conexão criptografada e segura';
    display: block;
    font-size: 11px;
    color: var(--sipec-text-muted);
    text-align: center;
    margin-top: 24px;
    font-family: var(--sipec-font);
}

/* -----------------------------------------------------------------------
   11. FORMULÁRIO — Espaçamento entre linhas
----------------------------------------------------------------------- */

.builder-template-login .container-login .tformrow {
    margin-bottom: 14px !important;
}

/* -----------------------------------------------------------------------
   12. DARK MODE — Painel direito
----------------------------------------------------------------------- */

.dark.builder-template-login .container-login,
.dark .builder-template-login .container-login {
    background: #000;
}

.dark.builder-template-login .container-login .panel-login .login-content,
.dark .builder-template-login .container-login .panel-login .login-content {
    background: #09090b;
}

/* -----------------------------------------------------------------------
   13. RESPONSIVO — Mobile
----------------------------------------------------------------------- */

@media (max-width: 768px) {
    .builder-template-login .container-login {
        padding: 0;
        background: var(--sipec-bg-right);
    }

    .builder-template-login .container-login .panel-login {
        flex-direction: column;
        border-radius: 0;
        min-height: 100vh;
        max-height: none;
        box-shadow: none;
    }

    .builder-template-login .container-login .panel-login .info-login {
        width: 100%;
        padding: 32px 24px 28px;
        min-height: unset;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 16px;
    }

    .builder-template-login .container-login .panel-login .info-login .login-logo {
        flex-direction: row;
        align-items: center;
    }

    .builder-template-login .container-login .panel-login .info-login .login-details {
        display: none;
    }

    .builder-template-login .container-login .panel-login .info-login::after {
        display: none;
    }

    .builder-template-login .container-login .panel-login .login-content {
        flex: 1;
        padding: 40px 24px;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .builder-template-login .container-login .panel-login .login-content {
        padding: 32px 20px;
    }
}

/* -----------------------------------------------------------------------
   14. MICRO-INTERAÇÕES EXTRAS
----------------------------------------------------------------------- */

@keyframes sipec-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.builder-template-login .container-login .has-error .tfield {
    animation: sipec-shake 0.4s ease;
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

@keyframes sipec-fadein {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.builder-template-login .container-login .panel-login .login-content {
    animation: sipec-fadein 0.4s ease;
}

.builder-template-login .container-login .card-footer .btn.loading,
.builder-template-login .container-login .panel-footer .btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.builder-template-login .container-login .card-footer .btn.loading::after,
.builder-template-login .container-login .panel-footer .btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sipec-spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes sipec-spin {
    to {
        transform: rotate(360deg);
    }
}


.login-header {
    z-index: 2;
}

.login-center {
    width: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.login-center img {
    position: relative;
    z-index: 2;
    max-width: 380px;
    height: auto;
    display: block;
}

.login-center h3 {
    color: #fff;
}

.login-center p {
    color: rgba(255, 255, 255, 0.75);
}

.login-footer {
    z-index: 2;
}

.status {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.status .dot {
    width: 8px;
    height: 8px;
    background: #3B82F6;
    border-radius: 50%;
}

.login-links {
    text-align: center;
    margin-top: 20px;
}