﻿/* =========================
   CÓDIGO ORIGINAL DESKTOP
   (Mantido exatamente como está)
   ========================= */

body {
    font-family: sans-serif;
    margin: 0;
}

label {
    margin: 0 !important;
}

.loginGeral {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 100vh;
    background-color: #FFF;
}

.imgPrincipal {
    grid-area: 1 / 1 / 2 / 3;
}

.loginInicial {
    grid-area: 1 / 3 / 2 / 4;
}

/*Fundo*/
.meioTelaLogin {
    display: flex;
}

.logoContainer img {
    width: 100px;
}

.txtimgLogin {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 3rem;
}

    .txtimgLogin .menorLogin {
        width: 46vw;
        height: auto;
    }

.imgPrincipal {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 50vw;
    background: url('/img/fundo_login_bahiagas_02.png') center center no-repeat;
    background-size: cover;
    border: 1rem solid #FFF;
    border-right: none;
}

.txtimgLogin p {
    margin-top: 0rem;
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    margin: 0 10vw;
}

.verde {
    color: var(--cor-secundaria);
    font-weight: 800;
}

.azul {
    color: #36B7FF;
    font-weight: 800;
}

.containerLogin {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 12vw;
}

.containerCliente {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 5vw;
}

/*Login*/
.loginInicial {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 2rem;
}

.inicioBV {
    color: #292929;
    text-align: center;
    font-size: 3.1875rem;
    font-weight: 700;
    margin-bottom: 2vw;
}

.formulario {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.emailLogin {
    color: #292929;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
}

.inputInicial {
    border-radius: 0.625rem;
    background: #FFF;
    border: 0.5px solid #B6B6B6;
    width: 30rem;
    height: 4rem;
    outline: none;
    font-size: 2.25rem;
    padding: 0rem 1.5rem;
    font-weight: 500;
}

    .inputInicial::placeholder {
        color: #DEDEDE;
        font-size: 2.25rem;
        font-weight: 500;
    }

    .inputInicial:focus {
        border: 0.5px solid #B6B6B6 !important;
    }

.entrarBnt {
    width: 30rem;
    height: 4rem;
    border-radius: 0.625rem;
    background: #0471b5;
    color: #FFF;
    font-size: 2.25rem;
    font-weight: 700;
    border: none;
    margin-top: 3rem;
}

.logosLogin {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    gap: 1.2rem;
}

    .logosLogin svg {
        height: 1.83706rem;
    }

.loginAtivo {
    width: 19.875rem;
    height: 3.1875rem;
    border-radius: 0.625rem;
    background: #45C630;
    border: 0.5px solid #B6B6B6 !important;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    color: #FFF;
    font-size: 1.25rem;
    font-weight: 700;
}

.selectLogin {
    background-color: white;
    color: #292929;
    font-size: 2rem;
    border: none;
    border-radius: 0.4375rem;
    background: #FFF;
    border: 0.5px solid #B6B6B6 !important;
    width: 30rem;
    height: 4rem;
    padding-left: 1rem;
}

.labelColorFont {
    color: #292929;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    margin-top: 1rem;
    margin-bottom: -0.2rem;
}

.loginAtivo {
    width: 30rem;
    height: 4rem;
    border-radius: 0.625rem;
    background: #007bff;
    border: 0.5px solid #B6B6B6 !important;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    color: #FFF;
    font-size: 2rem;
    font-weight: 700;
}

.pltcNova {
    color: #9B9B9B;
    font-size: 11px;
    padding-left: 1.9rem;
}

    .pltcNova a {
        font-weight: 700;
        font-size: 11px;
        color: #292929;
    }

.pltcNova {
    text-align: center;
    margin-top: 0.5rem;
    white-space: nowrap;
}

.loginPrivacidade {
    display: grid;
    grid-template-columns: 20% 80%;
    grid-template-rows: 100%;
    min-height: 100vh;
    height: 100%;
}

.imgPrivacidade {
    grid-area: 1 / 1 / 2 / 2;
}

.loginPIriade3 {
    grid-area: 1 / 2 / 2 / 3;
}

.imgPrivacidade {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
    background-image: url('/icon/ImgLogin03.png');
    background-size: cover;
    background-position: center;
    border-right: none;
}

.tituloPLTC {
    display: flex;
    justify-content: center;
    color: #292929;
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Estilização das abas */
.nav-tabs .nav-link.active {
    color: #FFF !important;
    background: #292929 !important;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
}

.nav.nav-tabs li {
    margin-bottom: -1px;
}

    .nav.nav-tabs li a {
        color: #333;
        border: 1px solid #ddd;
        border-radius: 5px 5px 0 0;
        margin-right: 5px;
    }

.tab-content {
    border: 1px solid #000;
    background: #FBFBFB;
    box-shadow: 0px 4px 20px 5px rgba(0, 0, 0, 0.15);
}

    .tab-content h3 {
        color: #333;
        margin-top: 0;
    }

    .tab-content p {
        color: #444;
    }

    .tab-content a {
        color: #007bff;
        text-decoration: none;
    }

        .tab-content a:hover {
            text-decoration: underline;
        }

.blocoprivte2 {
    padding: 2rem 5rem;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.blocoddtswe2 p {
    font-size: 0.8vw;
}

.blocoddtswe2 {
    padding: 2rem;
}

    .blocoddtswe2 h3 {
        color: #000;
        font-size: 24px;
        font-weight: 700;
        padding-bottom: 1rem;
    }

.FinalPrivaciade {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
}

.voltar-btn {
    background-color: black;
    border-radius: 7px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: background-color 0.3s, color 0.3s;
}

    .voltar-btn:hover {
        background-color: #333;
        color: white;
    }

    .voltar-btn svg {
        margin-right: 10px;
    }

.voltar-text {
    font-size: 18px;
}

.login-container {
    display: flex;
    align-items: center;
    width: 30rem;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.esqueceuSenha a {
    color: #292929;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
}

.boxLembrarLG {
    display: flex;
    align-items: center;
}

    .boxLembrarLG label {
        color: #292929;
        font-size: 13px;
        font-weight: 400;
        display: flex;
        align-items: center;
        cursor: pointer;
    }

    .boxLembrarLG input[type="checkbox"] {
        width: 15px;
        height: 15px;
        margin: 0 !important;
        margin-right: 0.5rem !important;
    }

.iconeAjuste {
    display: flex;
    justify-content: center;
}

    .iconeAjuste img {
        height: 7rem;
    }

.textoEsqueceuSenha h1 {
    font-weight: bold;
}

.pricipalSenha {
    margin-bottom: 3rem;
}

.textoEsqueceuSenha p {
    font-size: 15px;
    font-weight: 600;
    color: #000;
}

.textoEsqueceuSenha .linkSenha {
    font-size: 15px;
    font-weight: 600;
    color: #45C630;
}

/* =========================
   RESPONSIVIDADE TABLET
   ========================= */

@media (max-width: 1024px) and (min-width: 769px) {
    .loginGeral {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 100vh;
    }

    .imgPrincipal {
        grid-area: 1 / 1 / 2 / 2;
        width: 100%;
    }

    .loginInicial {
        grid-area: 1 / 2 / 2 / 3;
    }

    .txtimgLogin .menorLogin {
        width: 60vw;
    }

    .txtimgLogin p {
        font-size: 20px;
        margin: 0 5vw;
    }

    .inputInicial,
    .entrarBnt,
    .selectLogin,
    .loginAtivo,
    .login-container {
        width: 25rem;
    }

        .inputInicial,
        .inputInicial::placeholder {
            font-size: 1.75rem;
        }

    .entrarBnt {
        font-size: 1.75rem;
    }

    .inicioBV {
        font-size: 2.5rem;
    }

    .emailLogin,
    .labelColorFont {
        font-size: 1.5rem;
    }

    .selectLogin {
        font-size: 1.75rem;
    }

    .loginAtivo {
        font-size: 1.75rem;
    }
}

/* =========================
   RESPONSIVIDADE MOBILE COMPLETA
   (Versão totalmente responsiva)
   ========================= */

@media (max-width: 768px) {
    /* Box-sizing global */
    *, *::before, *::after {
        box-sizing: border-box;
    }

    body {
        overflow-x: hidden;
    }

    /* Layout principal - flex column */
    .loginGeral {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        grid-template-columns: none;
        grid-template-rows: none;
    }

    /* Imagem principal reduzida */
    .imgPrincipal {
        height: clamp(200px, 30vh, 300px);
        width: 100%;
        border: 0.5rem solid #FFF;
        border-bottom: none;
        grid-area: unset;
        background-size: cover;
        background-position: center;
    }

    .txtimgLogin {
        gap: 1.5rem;
        padding: 1rem;
    }

        /* Esconder elementos decorativos */
        .menorLogin,
        .txtimgLogin p {
            display: none;
        }

    .logoContainer img {
        width: clamp(70px, 15vw, 100px);
    }

    /* Container de login */
    .loginInicial {
        grid-area: unset;
        flex: 1;
        padding: 1.5rem 1rem;
        justify-content: flex-start;
        min-height: auto;
    }

    .containerLogin {
        margin-top: 2rem;
        width: 100%;
    }

    .containerCliente {
        margin-top: 2rem;
        width: 100%;
    }

    /* Título */
    .inicioBV {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        margin-bottom: 2rem;
    }

    /* Formulário */
    .formulario {
        width: 100%;
        align-items: stretch;
    }

    .emailLogin,
    .labelColorFont {
        font-size: clamp(1.125rem, 4vw, 1.5rem);
        margin-bottom: 0.5rem;
    }

    /* Inputs responsivos */
    .inputInicial,
    .selectLogin,
    .entrarBnt,
    .loginAtivo,
    .login-container {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }

    .inputInicial {
        height: clamp(3rem, 12vw, 4rem);
        font-size: clamp(1rem, 4.5vw, 1.5rem);
        padding: 0 1rem;
    }

        .inputInicial::placeholder {
            font-size: clamp(1rem, 4.5vw, 1.5rem);
        }

    .selectLogin {
        height: clamp(3rem, 12vw, 4rem);
        font-size: clamp(1rem, 4.5vw, 1.5rem);
        padding-left: 1rem;
    }

    .entrarBnt {
        height: clamp(3rem, 12vw, 4rem);
        font-size: clamp(1.125rem, 5vw, 1.75rem);
        margin-top: 2rem;
        cursor: pointer;
    }

    .loginAtivo {
        height: clamp(3rem, 12vw, 4rem);
        font-size: clamp(1rem, 4.5vw, 1.5rem);
        padding-left: 1rem;
        width: 100%;
    }

    /* Login container (checkbox + esqueci senha) */
    .login-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-top: 1rem;
    }

    .boxLembrarLG label {
        font-size: clamp(11px, 3vw, 14px);
    }

    .boxLembrarLG input[type="checkbox"] {
        width: clamp(14px, 4vw, 18px);
        height: clamp(14px, 4vw, 18px);
    }

    .esqueceuSenha a {
        font-size: clamp(11px, 3vw, 14px);
    }

    /* Política de privacidade */
    .pltcNova {
        padding-left: 0;
        margin-top: 1.5rem;
        margin-bottom: 2rem;
        white-space: normal;
        font-size: clamp(10px, 2.5vw, 12px);
    }

        .pltcNova a {
            font-size: clamp(10px, 2.5vw, 12px);
        }

    /* Logos rodapé */
    .logosLogin {
        gap: 1rem;
        flex-wrap: wrap;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

        .logosLogin svg {
            height: clamp(1.2rem, 4vw, 1.8rem);
        }

    /* Página de Privacidade */
    .loginPrivacidade {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        grid-template-rows: none;
        min-height: 100vh;
    }

    .imgPrivacidade {
        grid-area: unset;
        height: clamp(150px, 25vh, 250px);
        width: 100%;
    }

    .loginPIriade3 {
        grid-area: unset;
        width: 100%;
    }

    .tituloPLTC {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .blocoprivte2 {
        padding: 1.5rem 1rem;
        height: auto;
        min-height: auto;
    }

    .blocoddtswe2 {
        padding: 1rem;
    }

        .blocoddtswe2 h3 {
            font-size: clamp(1.125rem, 4.5vw, 1.5rem);
            padding-bottom: 0.75rem;
        }

        .blocoddtswe2 p {
            font-size: clamp(0.875rem, 3.5vw, 1rem);
        }

    /* Tabs */
    .nav.nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

        .nav.nav-tabs li {
            flex-shrink: 0;
        }

            .nav.nav-tabs li a {
                font-size: clamp(0.875rem, 3.5vw, 1rem);
                padding: 0.5rem 1rem;
                margin-right: 3px;
                white-space: nowrap;
            }

    .tab-content {
        border-width: 1px;
        padding: 1rem;
    }

    /* Botão voltar */
    .FinalPrivaciade {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }

    .voltar-btn {
        padding: 0.75rem 1.5rem;
        font-size: clamp(0.875rem, 3.5vw, 1rem);
    }

    .voltar-text {
        font-size: clamp(0.875rem, 3.5vw, 1rem);
    }

    .voltar-btn svg {
        width: clamp(1rem, 4vw, 1.25rem);
        height: auto;
        margin-right: 0.5rem;
    }

    /* Esqueci senha */
    .iconeAjuste img {
        height: clamp(5rem, 15vw, 7rem);
    }

    .pricipalSenha {
        margin-bottom: 2rem;
    }

    .textoEsqueceuSenha h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .textoEsqueceuSenha p,
    .textoEsqueceuSenha .linkSenha {
        font-size: clamp(13px, 3.5vw, 16px);
    }
}

/* Mobile muito pequeno (< 375px) */
@media (max-width: 374px) {
    .imgPrincipal {
        height: 180px;
    }

    .loginInicial {
        padding: 1rem 0.75rem;
    }

    .inicioBV {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .inputInicial,
    .selectLogin,
    .entrarBnt,
    .loginAtivo {
        height: 3rem;
        font-size: 1rem;
    }

        .inputInicial::placeholder {
            font-size: 1rem;
        }

    .emailLogin,
    .labelColorFont {
        font-size: 1rem;
    }

    .entrarBnt {
        margin-top: 1.5rem;
    }

    .pltcNova {
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }

    .logosLogin {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .imgPrincipal {
        height: 150px;
    }

    .containerLogin,
    .containerCliente {
        margin-top: 1rem;
    }

    .inicioBV {
        margin-bottom: 1rem;
    }

    .entrarBnt {
        margin-top: 1rem;
    }

    .pltcNova {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .logosLogin {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

/* Ajustes para telas muito largas */
@media (min-width: 1920px) {
    .inputInicial,
    .selectLogin,
    .entrarBnt,
    .loginAtivo,
    .login-container {
        max-width: 35rem;
    }

    .loginInicial {
        padding: 3rem;
    }
}
