﻿html, body {
    height: 100%;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f6f9; /* Fundo cinza padrão para destacar o card */
    overflow-x: hidden;
}

/* ESTRUTURA SPLIT-SCREEN */
.split-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* LADO ESQUERDO: BANNER */
.split-banner {
    flex: 1.1;
    background:  url('/img/banner_login1.png') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3.5rem;
    color: #ffffff;
    position: relative;
}

/* LADO DIREITO: ÁREA DO FORMULÁRIO */
.split-form-side {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
    position: relative;
    overflow-y: auto;
}

/* BARRA SUPERIOR DE IDIOMAS */
.lang-bar {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1050;
}

.lang-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s ease-in-out;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

    .lang-flag:hover, .lang-flag.active {
        opacity: 1;
        transform: scale(1.1);
    }

/* CONTEÚDO DO BANNER INSTITUCIONAL */
.banner-logo {
    max-height: 40px;
    width: auto;
    align-self: flex-start;
}

.banner-middle-text h1 {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 1.2rem;
}

.banner-middle-text p {
    font-size: 1.05rem;
    color: #e2e8f0;
    font-weight: 400;
    max-width: 500px;
    line-height: 1.6;
}

.banner-features {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* CARD FLUTUANTE COM O EFEITO DE BORDA */
.login-box-card {
    width: 100%;
    max-width: 440px;
    margin: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0; /* Borda limpa e elegante */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Sombra tridimensional */
    padding: 2.5rem 2rem;
}

.brand-logo-mobile {
    max-height: 38px;
    width: auto;
    display: none;
    margin: 0 auto 2rem auto;
}

.login-title-accent {
    color: #0f2042;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ESTILIZAÇÃO DOS INPUTS */
.form-control {
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #0f2042;
    font-weight: 600;
}

.form-control:focus {
    background-color: #ffffff;
    border-color: #0f2042;
    box-shadow: 0 0 0 0.25rem rgba(15, 32, 66, 0.08);
}

/* BOTÃO PRINCIPAL */
.btn-b2b-login {
    background-color: var(--cor-fundo-botao) !important;
    border-color: var(--cor-borda-botao) !important;
    color: var(--cor-fonte-botao) !important;
    font-weight: 600;
    padding: 0.8rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

    .btn-b2b-login:hover {
        background-color: var(--cor-fundo-botao-hover) !important;
        border-color: var(--cor-borda-botao-hover) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
        color: var(--cor-fonte-botao-hover) !important;
    }

/* LINKS E UTILS */
.login-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .login-link:hover {
        color: #0f2042;
        text-decoration: underline;
    }

.divider-first-access {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0 1.5rem 0;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .divider-first-access::before, .divider-first-access::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #e2e8f0;
    }

    .divider-first-access:not(:empty)::before {
        margin-right: .75em;
    }

    .divider-first-access:not(:empty)::after {
        margin-left: .75em;
    }

.btn-first-access {
    border: 1px dashed #003842;
    color: #003842;
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    display: block;
    text-align: center;
    text-decoration: none;
}

    .btn-first-access:hover {
        background: #003842;
        color: #ffffff;
        border-style: solid;
    }

/* RODAPÉ DO FORMULÁRIO */
.login-footer-text {
    text-align: center;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2rem;
}

.pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 9999;
}
/* RESPONSIVIDADE CORRIGIDA para manter a borda e o estilo de card no celular */
@media (max-width: 991.98px) {
    .split-banner {
        display: none; /* Oculta apenas o banner lateral esquerdo */
    }

    .split-form-side {
        flex: 1;
        padding: 1.5rem;
        justify-content: center;
    }

    .login-box-card {
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
        padding: 2rem 1.5rem; /* Ajuste sutil de espaçamento interno para telas estreitas */
    }

    .brand-logo-mobile {
        display: block;
    }

    .lang-bar {
        top: 15px;
        right: 15px;
    }
}

/* ERRO DE LOGIN */
.error-login {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #7f1d1d;
    text-align: center;
    
}

.error-login li {
    list-style: none;
    padding:5px;
}

.error-login ul {
    padding: 0; 
    margin: 0; 
}

.lang-container-top {
    position: absolute;
    top: 20px;
    right: 25px;
    z-index: 1050;
}

.lang-flag {
    cursor: pointer;
    width: 30px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    opacity: 0.55;
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

    .lang-flag:hover {
        opacity: 0.85;
        transform: scale(1.08);
    }

    .lang-flag.active {
        opacity: 1;
        transform: scale(1.15);
        border-color: #0f2042;
    }

.tipo-acesso-pills {
    background-color: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
    display: flex;
    gap: 4px;
}

.tipo-acesso-btn {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    color: #64748b;
    transition: all 0.2s ease;
}

    .tipo-acesso-btn.active {
        background-color: #ffffff;
        color: #0f2042;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }