*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Nexa";
    font-weight: 400;
}

@font-face {
    font-family: "Nexa";
    src: url(../Assets/Nexa\ Light.otf);
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Nexa";
    src: url(../Assets/Nexa\ Regular.otf);
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Nexa";
    src: url(../Assets/Nexa\ Bold.otf);
    font-weight: 700;
    font-style: normal;
}

body{
    color: white;
}

form{
    display: flex;
    flex-direction: column;
    gap: 16px;

  
}

input, button{
    padding: 12px 55px !important;
    border-radius: 12px;
    border: none;
    outline: none;
    font-size: 16px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

input{
    background-color: rgba(255 255 255 / .2);
    color: rgba(255 255 255 / .9);
}

input::placeholder{
    color: rgba(255 255 255 / .5);
}

button{
    margin-top: 8px;
    font-weight: 700;
    color: rgba(0 0 0 / .8);
    padding: 16px 35px; /* Adicionado 35px horizontal */
    cursor: pointer;
    transition: all .3s;
}

button:hover{
    transform: translateY(-2px);
}

h2{
    font-size: 60px;
    margin-bottom: 32px;
    text-align: center;
    font-weight: 700;
}

p{
    margin-bottom: 32px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    color: rgba(255 255 255 / .8);
}

.containerPai{
    width: 100%;
    height: 100vh;
    background-color: #14151A;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.card{
    margin-top: 32px;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    min-height: 600px;
    background-color: rgba(255 255 255 / 0.2);
    border-radius: 32px;
    padding: 32px 20px;
    display: flex;
    justify-self: center;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.esquerda, .direita{
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.formLogin, .facaLogin, .formCadastro, .facaCadastro{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.facaLogin, .facaCadastro{
    position: absolute;

    h2{
        color: rgba(255 255 255 / .8);
    }

    button{
        background-color: rgba(255 255 255 / .2);
        border: 1px solid rgba(255 255 255 / .8);
        color: rgba(255 255 255 / .8);
    }
}

.btn-voltar{
    margin-top: 20px;
    width: 165px;
    position: absolute;
    top: 32px;
    right: 32px;
    z-index: 2;
    top: -5px;
}

/*background móvel*/

.card::after{
    width: 100%;
    height: 100%;
    content: "";
    background-color: rgba(13 22 118);
    position: absolute;
    top: 0;
    right: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* loginActive */

.card.loginActive .facaLogin{
    opacity: 0;
    pointer-events: none;
}

.card.loginActive .facaCadastro{
    transform: translateX(0);
    transition: all .3s .3s;
    opacity: 1;
}

.card.loginActive .formLogin{
    transition: all .3s .3s;
    opacity: 1;
}

.card.loginActive .formCadastro{
    opacity: 0;
    pointer-events: none;
}

.card.loginActive::after{
    transform: translateX(50%);
}

/* cadastroActive */

.card.cadastroActive .facaCadastro{
    opacity: 0;
    pointer-events: none;
}

.card.cadastroActive .formLogin{
    opacity: 0;
    pointer-events: none;
}

.card.cadastroActive::after{
    transform: translateX(-50%);
}

.card.cadastroActive .facaLogin{
    transform: translateX(0);
    transition: all .3s .3s;
    opacity: 1;
}

.card.cadastroActive .formCadastro{
    transition: all .3s .3s;
    opacity: 1;
}


/* transitions */

.card::after{
    transition: all .5s;
}

.facaCadastro{
    transition: all .3s 0;
    transform: translateX(200%);
}

.formLogin{
    opacity: 0;
    transition: all .3s 0;
}

.facaLogin{
    transition: all .3s 0;
    transform: translateX(-200%);
}

.formCadastro{
    opacity: 0;
    transition: all .3s 0;
}

/* Estilo para o checkbox "Lembrar e-mail" */
.checkbox-container {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.checkbox-input {
    margin: 0 8px 0 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    vertical-align: middle;
}

/* Texto "Lembrar e-mail" em branco */
.checkbox-label span.lembrar {
    color: white !important;
    font-size: 14px !important;
    font-weight: normal !important;
}

/* Garantir que seja branco em qualquer contexto */
.formLogin .checkbox-label span.lembrar {
    color: #ffffff !important;
}

.esquerda .formLogin .checkbox-label span.lembrar {
    color: #ffffff !important;
}

/* RESPONSIVE DESIGN */

/* Tablets (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .card {
        width: 95%;
        height: 85vh;
        padding: 20px 15px;
    }
    
    h2 {
        font-size: 48px;
        margin-bottom: 24px;
    }
    
    .btn-voltar {
        width: 140px;
        top: 20px;
        right: 20px;
    }
}

/* Mobile devices (up to 768px) */
@media screen and (max-width: 768px) {
    .containerPai {
        padding: 10px;
    }
    
    .card {
        width: 100%;
        height: auto;
        min-height: 90vh;
        flex-direction: column;
        padding: 20px 15px;
        border-radius: 20px;
        margin-top: 0;
    }
    
    .esquerda, .direita {
        width: 100%;
        height: auto;
        min-height: 50vh;
    }
    
    .card::after {
        display: none;
    }
    
    .card.loginActive::after,
    .card.cadastroActive::after {
        display: none;
    }
    
    .facaLogin, .facaCadastro {
        position: static;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: all !important;
        margin-top: 30px;
    }
    
    .formLogin, .formCadastro {
        opacity: 1 !important;
        pointer-events: all !important;
    }
    
    h2 {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    input, button {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .btn-voltar {
        width: 120px;
        top: 15px;
        right: 15px;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    form {
        gap: 12px;
        width: 100%;
        max-width: 350px;
    }
    
    p {
        margin-bottom: 20px;
        font-size: 14px;
        line-height: 1.4;
    }
}

/* Small mobile devices (up to 480px) */
@media screen and (max-width: 480px) {
    .containerPai {
        padding: 10px;
    }
}

/* Very small devices (up to 360px) */
@media screen and (max-width: 360px) {
    .containerPai {
        padding: 5px;
    }
}

/* Landscape orientation for mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .containerPai {
        height: auto;
        min-height: 100vh;
        padding: 10px 0;
    }
    
    .card {
        height: auto;
        min-height: auto;
        flex-direction: row;
        padding: 32px 20px;
    }
    
    .esquerda, .direita {
        width: 50%;
        height: auto;
    }
}
