@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Globalmente define o box-sizing */
    --back_input: rgb(70, 50, 29);
    --main: linear-gradient(90deg, rgba(31, 18, 4, 1) 13%, rgba(52, 29, 8, 1) 44%);
    --card_login: rgba(47, 34, 20, 1);
    --card_login_adm: rgb(69, 47, 24);

    --btn_login: linear-gradient(135deg, #58864c 40%, #41942c);
    --btn_adm: linear-gradient(135deg, rgb(174, 19, 19) 40%, #531515);
    --btn_user: linear-gradient(135deg, #1746d3 30%, rgb(131, 122, 189));
}

body {
    font-family: 'Noto Sans', sans-serif !important;
    background: var(--main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Garante que a altura mínima ocupe toda a tela */
}

main {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-login,
.right-login {
    width: 50vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.left-login h1 {
    font-size: 3vw;
    color: white;
}

.left-login-image {
    width: 58vw;
    height: 100vw;
    /* Garante que a imagem mantenha a proporção */
}

.card-login {
    width: 80%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 10px;
    background: var(--card_login);
    box-shadow: 0px 10px 40px #75757556;
}

.card_adm {
    background: var(--card_login_adm);
}

.card-login h1 {
    color: white;
    font-weight: 800;
    text-align: center;
    margin: 0;
    font-size: 1.5rem;
}

.textfield {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 5px 0;
    font-size: 10pt;
}

.textfield input {
    width: 100%;
    border: none;
    border-radius: 5px;
    padding: 10px;
    background: var(--back_input);
    color: #f0ffffde;
    font-size: 12pt;
    box-shadow: 0px 10px 40px #00000056;
    outline: none;
}

.textfield p {
    color: #f0ffffde;
    margin-bottom: 2px;
}

.textfield input::placeholder {
    color: #f0ffff94;
}

.div-btn {
    display: inline-flex;
    width: 100%;
    margin-top: 20px;
}

.btn-login {
    width: 100%;
    padding: 10px 0;
    margin-top: 25px;
    border: none;
    border-radius: 4px;
    outline: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 3px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
    /* Melhor efeito de hover */
}

.login {
    background: var(--btn_login);
}

.adm {
    background: var(--btn_adm);
}

.user {
    background: var(--btn_user);
}

a {
    text-decoration: none;
    text-align: center;
}

.btn-login:hover {
    transform: scale(1.02);
}

button:disabled {
    opacity: 0.3;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: white !important;
    font-weight: 600;
    text-align: center;
}

.select2-container--default .select2-selection--single {
    background: var(--back_input) !important;
}

@media only screen and (max-width: 950px) {
    .card-login {
        width: 85%;
    }
}

@media only screen and (max-width: 600px) {
    main {
        flex-direction: column;
    }

    .left-login h1 {
        display: none;
    }

    .left-login {
        width: 100%;
        height: auto;
    }

    .right-login {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .left-login-image {
        display: none;
        /* Esconde a imagem em dispositivos menores */
    }

    .card-login {
        width: 80%;
    }
}

.select2-container--default .select2-results>.select2-results__options {
    text-align: center;
}

.admin {
    background: var(--btn_adm);
}

.btn-login {
    margin: 5px
}
