html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden; /* Remove scroll da página principal */
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(2,16,36,1) 50%, rgba(0,0,0,1) 100%);
}

.split-screen {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 1;
    height: 100vh;
    overflow: hidden;
}

/* Ajuste para as duas primeiras colunas ficarem lado a lado */
.split-screen .col-md-6:nth-child(1),
.split-screen .col-md-6:nth-child(2) {
    display: flex;
    flex: 1;
    height: calc(100vh - 120px); /* Deixa espaço para os botões */
}

.split-screen::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translateX(-50%);
    width: 2px;
    height: 20%;
    background: linear-gradient(180deg, 
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.5) 50%,
        rgba(255,255,255,0) 100%
    );
    z-index: 10;
}

.star-layers {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.star-layer {
    position: absolute;
    width: 100%;
    height: 100%;
}

#stars {
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow: 70px 61px #FFF,267px 660px #FFF,347px 841px #FFF,980px 702px #FFF,1120px 869px #FFF,1488px 243px #FFF,1827px 753px #FFF,1941px 833px #FFF,1155px 833px #FFF,1964px 932px #FFF,1347px 843px #FFF,1761px 826px #FFF,1570px 998px #FFF,1879px 549px #FFF,1530px 514px #FFF,1797px 787px #FFF,1613px 437px #FFF,1566px 655px #FFF,1196px 130px #FFF,174px 122px #FFF,334px 321px #FFF,695px 682px #FFF,160px 405px #FFF,440px 738px #FFF,177px 894px #FFF,551px 486px #FFF,655px 506px #FFF,182px 881px #FFF,110px 666px #FFF,928px 865px #FFF;
    animation: animStar 50s linear infinite;
}

#stars:after {
    content: '';
    position: absolute;
    top: 100vh;
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow: 70px 61px #FFF,267px 660px #FFF,347px 841px #FFF,980px 702px #FFF,1120px 869px #FFF,1488px 243px #FFF,1827px 753px #FFF,1941px 833px #FFF,1155px 833px #FFF,1964px 932px #FFF,1347px 843px #FFF,1761px 826px #FFF,1570px 998px #FFF,1879px 549px #FFF,1530px 514px #FFF,1797px 787px #FFF,1613px 437px #FFF,1566px 655px #FFF,1196px 130px #FFF,174px 122px #FFF,334px 321px #FFF,695px 682px #FFF,160px 405px #FFF,440px 738px #FFF,177px 894px #FFF,551px 486px #FFF,655px 506px #FFF,182px 881px #FFF,110px 666px #FFF,928px 865px #FFF;
}

#stars2 {
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow: 70px 61px #FFF,267px 660px #FFF,347px 841px #FFF,980px 702px #FFF,1120px 869px #FFF,1488px 243px #FFF,1827px 753px #FFF,1941px 833px #FFF,1155px 833px #FFF,1964px 932px #FFF;
    animation: animStar 100s linear infinite;
}

#stars2:after {
    content: '';
    position: absolute;
    top: 100vh;
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow: 70px 61px #FFF,267px 660px #FFF,347px 841px #FFF,980px 702px #FFF,1120px 869px #FFF,1488px 243px #FFF,1827px 753px #FFF,1941px 833px #FFF,1155px 833px #FFF,1964px 932px #FFF;
}

#stars3 {
    width: 3px;
    height: 3px;
    background: transparent;
    box-shadow: 170px 161px #FFF,467px 760px #FFF,547px 941px #FFF,1180px 802px #FFF,1320px 969px #FFF,1688px 343px #FFF,1927px 853px #FFF,1941px 933px #FFF,1355px 933px #FFF,1964px 932px #FFF;
    animation: animStar 150s linear infinite;
}

#stars3:after {
    content: '';
    position: absolute;
    top: 100vh;
    width: 3px;
    height: 3px;
    background: transparent;
    box-shadow: 170px 161px #FFF,467px 760px #FFF,547px 941px #FFF,1180px 802px #FFF,1320px 969px #FFF,1688px 343px #FFF,1927px 853px #FFF,1941px 933px #FFF,1355px 933px #FFF,1964px 932px #FFF;
}

@keyframes animStar {
    from { transform: translateY(0); }
    to { transform: translateY(-100vh); }
}

.logo-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 10px;
}

.logo {
    max-width: 400px;
    height: auto;
    object-fit: contain; /* Mantém proporções da imagem */
}

/* ESTILO ESPECIAL PARA OS BOTÕES NA PARTE INFERIOR */
.split-screen .col-md-12 {
    position: fixed;
    bottom: 40px; /* Acima do rodapé */
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    padding: 15px 0;
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.botoes {
    margin: 0 auto;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

/* Ajuste para as colunas principais usarem flexbox horizontal */
@media (min-width: 769px) {
    .split-screen {
        flex-direction: row;
        align-items: stretch;
    }
    
    .split-screen .col-md-6:nth-child(1),
    .split-screen .col-md-6:nth-child(2) {
        width: 50%;
        height: 100vh;
        padding-bottom: 120px; /* Espaço para os botões */
    }
}

@media (max-width: 768px) {
    html, body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
    
    .split-screen {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 100px);
        overflow: visible;
        padding-bottom: 100px;
    }
    
    .split-screen .col-md-6:nth-child(1),
    .split-screen .col-md-6:nth-child(2) {
        width: 100%;
        height: auto;
        min-height: 50vh;
        padding-bottom: 0;
    }
    
    /* Reordena os elementos no mobile */
    .split-screen .col-md-6:nth-child(1) {
        order: 2; /* Logo/texto por primeiro */
    }
    
    .split-screen .col-md-6:nth-child(2) {
        order: 1; /* Login por segundo */
    }
    
    .split-screen .col-md-12 {
        order: 3; /* Botões por último */
    }
    
    .split-screen::after {
        display: none;
    }
    
    .logo-container {
        position: relative;
        width: 100%;
        padding: 15px;
        transform: none;
        left: 0;
        display: flex;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .logo {
        max-width: 100%;
        height: auto;
        max-height: 77px; /* Reduz ainda mais a altura no mobile */
        object-fit: contain;
        width: auto; /* Permite que a largura se ajuste automaticamente */
    }

    .botoes {
        margin: 0 auto;
        text-align: center;
        max-width: 800px;
        width: 99%;
        padding: 20px 46px;
    }

    .portal-content {
        margin-top: 0px!important;
        max-width: 500px;
    }

    .portal {
        padding: 1rem!important;
        margin-bottom: 0;
    }

    .split-screen .col-md-12 {
        position: relative;
        bottom: auto;
        margin-top: 20px;
        padding: 10px 0;
    }
}

.portal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
    background: transparent;
    flex: 1;
    overflow-y: auto;
}

.portal-content {
    margin-top: 40px;
    max-width: 500px;
}

.portal-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
}

.portal-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.access-button {
    background: #237ad9;
    color: #ffffff;
    padding: 0.8rem 3rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.access-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.barratopo {
    position: fixed;
    top: 0;
    width: 100%;
    background-color:#237ad9;
    height: 6px;
    z-index: 1001;
}

.marcanew {
    display: flex; 
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 5px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.powerednew {
    color: #fff;
    padding: 5px 0px 5px 10px;
}

.versaonew {
    color: #fff;
    padding: 5px 10px 5px 0px;
}

.login .content {
    background-color: #00000017;
    width: 100%;
    min-height: 400px;
    margin: 0 auto;
    margin-bottom: 0px;
    padding: 30px;
    padding-top: 20px;
    padding-bottom: 10px;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    -ms-border-radius: 7px;
    -o-border-radius: 7px;
    border-radius: 7px;
    -webkit-filter: drop-shadow(5px 5px 5px #222);
    filter: drop-shadow(5px 5px 5px #222);
    color: #ffffff;
    border: solid 1px #ffffff8a;
}

.forget-form {
    display: none;
}

.login-form {
    display: block;
}

.btn-frente {
    margin-bottom: 5px;
}

.textlogo {
    margin: 0px auto 0px auto;
    padding: 15px 0px 0 0;
    text-align: center;
    color: rgb(255, 255, 255);
    font-size:15pt;
    -webkit-filter: drop-shadow(5px 5px 5px #222 );
    filter: drop-shadow(5px 5px 5px #222);
}

.blur-gradient-container {
    position: relative;
    overflow: hidden;
}

.blur-gradient-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.blur-gradient-container > * {
    position: relative;
    z-index: 1;
}

.form-title {
    font-weight: 800;
}

.cloudback {
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
}

.btn.dark:not(.btn-outline) {
    color: #FFF;
    background-color: #2f353b;
    border-color: #00000000;
}

/* Oculta elementos de chat que não são necessários nesta página */
.copilot-chat,
.chat-input-container,
.chat-messages,
.message,
.user-message,
.bot-message,
.ai-icon {
    display: none;
}

.width-100 {
    width: 100%;
}