/* Split-Screen Modern B2B Theme para o Cidadão */

body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: row !important;
    /* Split screen */
    background: #f8fafc !important;
    overflow: hidden !important;
}

/* Lado Esquerdo - A Imagem */
body::before {
    content: '' !important;
    display: block !important;
    flex: 1 !important;
    /* Preenche o resto da tela */
    background-image: url('../img/balão.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
    filter: none !important;
    border-radius: 0 !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    animation: none !important;
    box-shadow: inset -10px 0 20px -10px rgba(0, 0, 0, 0.5) !important;
    z-index: 1 !important;
}

/* Overlay sutil na imagem para escurecer um pouco e dar contraste (opcional) */
body::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: calc(100% - 480px) !important;
    /* Cobre só a parte da imagem, assumindo o painel com 480px */
    height: 100% !important;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%) !important;
    z-index: 2 !important;
    display: block !important;
    filter: none !important;
    border-radius: 0 !important;
    animation: none !important;
}

/* O Painel Lateral Direito (O Formulário) */
.login-pf-page {
    width: 480px !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    background: #ffffff !important;
    padding: 60px 40px !important;
    position: relative !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;

    /* Removemos o estilo de "cartão flutuante" */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: -15px 0 30px -15px rgba(0, 0, 0, 0.2) !important;
    transform: none !important;
    animation: slideLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsividade: em telas pequenas, o formulário ocupa 100% e a imagem some */
@media (max-width: 768px) {
    body {
        flex-direction: column !important;
    }

    body::before,
    body::after {
        display: none !important;
    }

    .login-pf-page {
        width: 100% !important;
        padding: 40px 30px !important;
        box-shadow: none !important;
    }
}

/* Removemos as bordas do cartao interno padrão */
.card-pf {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* Logomarca */
#kc-header {
    margin-bottom: 0px !important;
}

#kc-header-wrapper {
    background-image: url('../img/gov.assai.png') !important;
    background-repeat: no-repeat !important;
    background-position: center bottom !important;
    background-size: contain !important;
    height: 70px !important;
    width: 100% !important;
    font-size: 0 !important; 
    color: transparent !important;
    transition: transform 0.3s ease !important;
}

#kc-header-wrapper:hover {
    transform: scale(1.02) !important;
}

/* O título do formulário ajustado para combinar com o GovBR */
#kc-page-title {
    font-family: 'Rawline', sans-serif !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #004B87 !important;
    text-align: center !important;
    margin-bottom: 5px !important;
    margin-top: 25px !important;
}

.custom-subtitle {
    display: block;
    text-align: center;
    font-family: 'Rawline', sans-serif;
    color: #718096;
    font-size: 14px;
    margin-bottom: 35px;
}

/* Custom Labels */
.custom-label {
    font-family: 'Rawline', sans-serif !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    color: #4a5568 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Input Icons */
.input-icon-container {
    position: relative;
    width: 100%;
}

.input-icon-container .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 16px;
    z-index: 5;
}

.input-with-icon {
    padding-left: 42px !important;
    width: 100% !important;
    height: 48px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #fff !important;
    font-family: 'Rawline', sans-serif !important;
    font-size: 14px !important;
}

.input-with-icon:focus {
    border-color: #004B87 !important;
    box-shadow: 0 0 0 3px rgba(0, 75, 135, 0.1) !important;
    outline: none !important;
}

.eye-btn {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 2 !important;
    background: transparent !important;
    border: none !important;
    color: #004B87 !important;
    height: auto !important;
    padding: 0 !important;
    cursor: pointer !important;
}

/* Options Row (Lembrar / Esqueci) */
.login-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 5px;
}

.login-options-row .br-checkbox {
    margin-bottom: 0 !important;
}

.login-options-row .br-checkbox label.remember-label {
    font-size: 13px;
    color: #475569;
    font-family: 'Rawline', sans-serif;
    cursor: pointer;
    line-height: 24px; /* Força a mesma altura da caixa padrão do govbr (24px) */
    display: inline-block;
}

.forgot-password-link {
    font-size: 13px;
    color: #2563eb !important;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Rawline', sans-serif;
}

.forgot-password-link:hover {
    text-decoration: underline !important;
}

/* Custom Primary Button */
.custom-primary-btn {
    background-color: #2463eb !important;
    border-radius: 12px !important;
    font-family: 'Rawline', sans-serif !important;
    font-weight: 800 !important;
    height: 52px !important;
    font-size: 15px !important;
    transition: all 0.2s ease !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.custom-primary-btn:hover {
    background-color: #1d4ed8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(36, 99, 235, 0.3) !important;
}

/* Registration Section */
#kc-info, .login-pf-page .login-pf-signup {
    display: none !important;
}

.custom-registration-container {
    margin-top: 20px !important;
    text-align: center !important;
    font-family: 'Rawline', sans-serif !important;
}

.register-hint {
    font-size: 13px;
    color: #718096;
    margin-bottom: 12px;
}

.custom-register-btn {
    border-radius: 12px !important;
    border: 2px solid #e2e8f0 !important;
    color: #2463eb !important;
    background-color: #f8fafc !important;
    font-weight: 800 !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
}

.custom-register-btn:hover {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

/* Links Extras */
.login-pf-page .login-pf-settings {
    margin-top: 20px !important;
    text-align: center !important;
    font-family: 'Rawline', sans-serif !important;
}

.login-pf-page .login-pf-settings a {
    color: #004B87 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: color 0.2s ease !important;
}

.login-pf-page .login-pf-settings a:hover {
    color: #F1C40F !important;
    text-decoration: underline !important;
}

/* Ajustes finos para componentes GovBR dentro do cartão */
.br-input {
    margin-bottom: 24px;
}

.br-button.primary {
    width: 100%;
    margin-top: 16px;
    height: 48px;
}

/* ==========================================================================
   SOCIAL PROVIDERS (Gov.br, Google, Facebook)
   ========================================================================== */
.custom-social-container {
    margin-top: 24px;
    width: 100%;
}

.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 16px;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #cbd5e1;
}

.social-divider span {
    padding: 0 12px;
    font-family: 'Rawline', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.social-providers-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-social-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 48px !important;
    border-radius: 12px !important;
    font-family: 'Rawline', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    padding: 0 16px !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

/* Gov.br Button */
#social-gov, #social-govbr, .social-btn-gov, .social-btn-govbr {
    background-color: #1351b4 !important;
    color: #ffffff !important;
    border: 2px solid transparent !important;
    box-shadow: 0 4px 10px rgba(19, 81, 180, 0.2) !important;
}

#social-gov:hover, #social-govbr:hover, .social-btn-gov:hover, .social-btn-govbr:hover {
    background-color: #0c326f !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 14px rgba(19, 81, 180, 0.3) !important;
    color: #ffffff !important;
}

.social-logo-govbr {
    height: 20px;
    margin-left: 8px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ==========================================================================
   ESTILO BOLINHA (Círculos lado a lado para Google, Facebook, etc.)
   ========================================================================== */
.social-circles-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.social-circle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    font-size: 20px;
}

.social-circle-btn:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* Bolinha Gov.br */
.social-circle-gov, .social-circle-govbr {
    background-color: #1351b4 !important;
    color: #ffffff !important;
    border: 2px solid transparent !important;
    box-shadow: 0 4px 12px rgba(19, 81, 180, 0.25) !important;
}

.social-circle-gov:hover, .social-circle-govbr:hover {
    background-color: #0c326f !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.06) !important;
    box-shadow: 0 8px 18px rgba(19, 81, 180, 0.35) !important;
}

.social-circle-logo-govbr {
    width: 32px;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Bolinha Google */
.social-circle-google {
    background-color: #ffffff !important;
    color: #4285F4 !important;
    border: 1.5px solid #e2e8f0 !important;
}

.social-circle-google:hover {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #3b78e7 !important;
}

/* Bolinha Facebook */
.social-circle-facebook {
    background-color: #1877F2 !important;
    color: #ffffff !important;
    border: 2px solid transparent !important;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.25) !important;
}

.social-circle-facebook:hover {
    background-color: #1558b0 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(24, 119, 242, 0.35) !important;
}