
/* =============================================================================
   BrandKitSlater - Dynamic Login Theme (OAB-PB / Enterprise)
   ============================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

/* 1. FUNDO DA PÁGINA COM A SEDE OAB-PB */
body.page-anonymous,
body.welcome-anonymous,
body:has(input[name="login_name"]),
body:has(#login_name) {
    background-color: #0A1428 !important;
    background-image: url('/plugins/brandkitslater/pics/login_bg.jpg') !important;
    background-size: cover !important;
    background-position: left center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
    position: relative !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    overflow-x: hidden !important;
}

/* 2. VINHETA CINEMATOGRÁFICA DE CONTRASTE */
body.page-anonymous::before,
body.welcome-anonymous::before,
body:has(input[name="login_name"])::before,
body:has(#login_name)::before {
    content: '' !important;
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    background: linear-gradient(
        90deg,
        rgba(10, 20, 40, 0.15) 0%,
        rgba(10, 20, 40, 0.25) 35%,
        rgba(10, 20, 40, 0.65) 65%,
        rgba(10, 20, 40, 0.75) 100%
    ) !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

/* 3. ALINHAMENTO DO CONTÊINER E SUPORTE A GLPI 10 E GLPI 11 */
main#page.page-anonymous,
.page-anonymous,
.welcome-anonymous {
    min-height: 100vh !important;
    position: relative !important;
    z-index: 1 !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

main#page > .flex-fill,
body.welcome-anonymous .flex-fill,
body.page-anonymous .flex-fill,
.page.page-center {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-end !important;
    padding: 2.5rem 6vw 2.5rem 2rem !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

/* 4. ELIMINA DEFINITIVAMENTE O LOGO SOLTO DO GLPI NO CÉU */
.container-tight > .text-center:first-child,
.container-tight > .text-center:has(.glpi-logo),
.container-tight > .text-center:has([class*="glpi-logo"]),
.container-tight > div:has(.glpi-logo),
.glpi-logo,
span.glpi-logo,
[class*="glpi-logo"],
body:has(input[name="login_name"]) a.navbar-brand:not(:has(.brandkit-card-logo)),
body:has(input[name="login_name"]) .navbar-brand:not(:has(.brandkit-card-logo)),
body:has(input[name="login_name"]) img[src*="logo-GLPI"]:not(.brandkit-card-logo),
body:has(input[name="login_name"]) img[src*="logo-glpi"]:not(.brandkit-card-logo),
body:has(input[name="login_name"]) img[alt="GLPI"]:not(.brandkit-card-logo) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
}

/* 5. LARGURA E POSICIONAMENTO DO CONTAINER-TIGHT */
.container-tight,
body.welcome-anonymous .container-tight,
body.page-anonymous .container-tight,
.page-anonymous .container {
    max-width: 440px !important;
    width: 100% !important;
    margin-left: auto !important; margin-right: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}

/* 6. CARTÃO DE LOGIN GLASSMORPHISM PREMIUM */
.card.card-md,
.card.main-content-card,
body.welcome-anonymous .card,
body.page-anonymous .card,
body:has(input[name="login_name"]) .card {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    border-radius: 22px !important;
    box-shadow: 0 25px 60px -15px rgba(5, 12, 26, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.4) !important;
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Faixa Superior Tricolor Institucional OAB */
.card.card-md::before,
.card.main-content-card::before,
body.welcome-anonymous .card::before,
body.page-anonymous .card::before,
body:has(input[name="login_name"]) .card::before {
    content: '' !important;
    display: block !important;
    height: 6px !important;
    width: 100% !important;
    background: linear-gradient(90deg, #003876 0%, #0095b7 55%, #c0122d 100%) !important;
}

/* Logo customizado no topo do card */

.card.card-md > .card-header:first-child,
.card.main-content-card > .card-header:first-child,
.card > .card-header:first-child {
    display: none !important;
}

.brandkit-card-logo {
    display: block !important;
    visibility: visible !important;
    max-width: 360px !important;
    max-height: 120px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto 1.25rem auto !important;
    object-fit: contain !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
    
}


/* Corpo do Cartão */
.card-body,
body.welcome-anonymous .card-body,
body.page-anonymous .card-body,
body:has(input[name="login_name"]) .card-body {
    padding: 2.25rem 2.25rem 1.85rem 2.25rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Selo Institucional OAB-PB Idêntico ao Preview */
.card-body::before,
body.welcome-anonymous .card-body::before,
body.page-anonymous .card-body::before,
body:has(input[name="login_name"]) .card-body::before {
    content: 'OAB • Portal de Atendimento' !important;
    display: table !important;
    margin: 0 auto 1.25rem auto !important;
    padding: 6px 16px !important;
    border-radius: 10px !important;
    background: #0A1428 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-align: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* 7. EXPANSÃO TOTAL DAS COLUNAS INTERNAS (FIM DO FORMULÁRIO ESPREMIDO) */
.card-body form,
body.page-anonymous .card-body form,
body.welcome-anonymous .card-body form {
    width: 100% !important;
    display: block !important;
}

.card-body form .row,
.card-body .row,
body.page-anonymous .card-body .row,
body.welcome-anonymous .card-body .row {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.card-body form .row > [class*="col"],
.card-body .row > [class*="col"],
body.page-anonymous .card-body [class*="col-"],
body.welcome-anonymous .card-body [class*="col-"],
body.page-anonymous .card-body .col,
body.welcome-anonymous .card-body .col {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* 8. TÍTULO E SUBTÍTULOS ELEGANTES (SEM QUEBRAS VERTICAIS!) */
.card-body .card-header,
.card-body [class*="col"] .card-header {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 1.25rem 0 !important;
    box-shadow: none !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

.card-body .card-header h2,
.card-body h2 {
    color: #0A1428 !important;
    font-weight: 800 !important;
    font-size: 1.35rem !important;
    letter-spacing: -0.02em !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal !important;
    line-height: 1.35 !important;
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
}

/* Mensagem de Boas-Vindas do GLPI (Subtítulo elegante) */
.card-body .rich_text_container {
    margin-bottom: 1.15rem !important;
    width: 100% !important;
    text-align: center !important;
}

.card-body .rich_text_container div[style*="top"] {
    top: 0 !important;
    position: static !important;
}

.card-body .rich_text_container h2,
.card-body .rich_text_container strong,
.card-body .rich_text_container p {
    font-size: 0.88rem !important;
    color: #64748b !important;
    font-weight: 500 !important;
    letter-spacing: normal !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* 9. CAMPOS DE ENTRADA (INPUTS MODERNOS FULL-WIDTH) */
.card-body .form-label,
body.page-anonymous .form-label,
body.welcome-anonymous .form-label {
    color: #334155 !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.4rem !important;
    display: block !important;
    text-align: left !important;
    width: 100% !important;
}

.card-body .form-control,
.card-body input[type="text"],
.card-body input[type="password"],
body.page-anonymous .form-control,
body.welcome-anonymous .form-control {
    background-color: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 0.8rem 1.1rem !important;
    font-size: 0.95rem !important;
    color: #0f172a !important;
    width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-bottom: 0.5rem !important;
}

.card-body .form-control:focus,
.card-body input[type="text"]:focus,
.card-body input[type="password"]:focus {
    background-color: #ffffff !important;
    border-color: #003876 !important;
    box-shadow: 0 0 0 4px rgba(0, 56, 118, 0.16) !important;
    outline: none !important;
}

/* Checkbox Lembrar de Mim */
.card-body .form-check,
body.page-anonymous .form-check,
body.welcome-anonymous .form-check {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0.5rem !important;
    width: 100% !important;
}

.card-body .form-check-label {
    font-size: 0.85rem !important;
    color: #475569 !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

/* 10. BOTÃO DE LOGIN ENTERPRISE (LARGURA TOTAL 100%) */
.card-body .btn-primary,
.card-body button[type="submit"],
.card-body .form-footer button,
.card-body .form-footer .btn,
body.page-anonymous button[type="submit"] {
    background: linear-gradient(135deg, #003876 0%, #0A1428 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0.9rem 1.5rem !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    letter-spacing: 0.02em !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(0, 56, 118, 0.38) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
    min-width: 100% !important;
    display: block !important;
    margin-top: 1rem !important;
    cursor: pointer !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.card-body .btn-primary:hover,
.card-body button[type="submit"]:hover {
    background: linear-gradient(135deg, #004ba0 0%, #001f3f 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(0, 56, 118, 0.50) !important;
}

/* 11. LINKS DE ESQUECEU A SENHA */
.card-body .forgot_password,
.card-body a {
    color: #003876 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.card-body a:hover {
    color: #c0122d !important;
    text-decoration: underline !important;
}

/* 12. BOTÃO DE AUTO-CADASTRO */
.brandkit-login-register-wrapper {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 1.25rem !important;
}

.brandkit-register-btn {
    width: 100% !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
}

/* 13. RODAPÉ DE COPYRIGHT */
.container-tight > .text-muted,
.page-anonymous .text-muted.mt-3 {
    background: rgba(10, 20, 40, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    padding: 0.65rem 1.25rem !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
    display: block !important;
    text-align: center !important;
    margin-top: 1.25rem !important;
}

.container-tight > .text-muted a,
.page-anonymous .text-muted a {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

/* 14. RESPONSIVIDADE */
@media (max-width: 991px) {
    body.page-anonymous::before,
    body.welcome-anonymous::before,
    body:has(input[name="login_name"])::before {
        background: linear-gradient(
            180deg,
            rgba(10, 20, 40, 0.30) 0%,
            rgba(10, 20, 40, 0.85) 100%
        ) !important;
    }

    main#page > .flex-fill,
    body.welcome-anonymous .flex-fill,
    body.page-anonymous .flex-fill,
    .page.page-center {
        align-items: center !important;
        justify-content: center !important;
        padding: 1.5rem !important;
    }

    .container-tight,
    body.welcome-anonymous .container-tight,
    body.page-anonymous .container-tight {
        margin: 0 auto !important;
        max-width: 100% !important;
    }
}


