/* -------------------- CONFIGURAÇÃO GLOBAL -------------------- */
html,
body {
    height: 100vh;
    overflow: hidden !important;
}

body {
    background-color: #f5eee8;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
}

h2 {
    color: #f5eee8;
    margin-bottom: 10px;
    margin-top: 10px;
    font-size: 25px;
    text-align: center;
}

.required {
    color: #f5eee8;
    display: block;
    text-align: left;
    margin-bottom: 10px;
    font-size: 16px;

}


/*---------- MENSAGEM DE ERRO ----------*/

.erro-login {
    background-color: #ffdddd;
    color: #a94442;
    border: 1px solid #a94442;
    border-radius: 5px;
    padding: 8px 10px;
    font-size: 12px;
    text-align: center;
    margin-bottom: 10px;
    transition: opacity 0.3s ease;
    max-height: 50px;
    overflow-y: auto;
}


/* -------------------- CONTÊINER PRINCIPAL -------------------- */
.login-conteiner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 6vh;
    flex: 1;
}

/* -------------------- LOGO -------------------- */
.logo {
    width: 70px;
    display: block;
    margin: 0 auto 40px;
}

/* -------------------- CAIXA DE LOGIN -------------------- */
.login-box {
    background-color: #3c7d38;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    min-height: 400px;
    /* aumenta o espaço vertical */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* -------------------- INPUTS -------------------- */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    background-color: #f5eee8;
    color: #2e433a;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border: none;
}

/* -------------------- CHECKBOX "LEMBRAR DE MIM" -------------------- */
.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #ffff;
}

input[type="checkbox"] {
    appearance: none;
    width: 15px;
    height: 15px;
    border: 3px solid #f5eee8;
    border-radius: 100%;
    background-color: transparent;
    cursor: pointer;
    outline: none;
}

input[type="checkbox"]:checked {
    background-color: #5fa35a;
    border: 3px solid #5fa35a;
}

#remember-text {
    font-size: 13px;
}

/* -------------------- BOTÃO DE LOGIN -------------------- */
button {
    width: 100%;
    padding: 7px;
    background-color: transparent;
    color: #f5eee8;
    border: 3px solid #f5eee8;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;

    transition: background 0.3s;
}

button:hover {
    background-color: #5fa35a;
    border: 3px solid #5fa35a;
    color: #f5eee8;
}

/* -------------------- LINK DE ESQUECEU A SENHA -------------------- */
.forgot {
    display: flex;
    color: #ffff;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s;
    margin-top: 20px;
    cursor: pointer;
}

.forgot:hover {
    color: #5fa35a;
}

/* -------------------- FOOTER -------------------- */
.footer {
    text-align: center;
    color: #3c7d38;
    font-size: 13px !important;
    margin-top: 25px;
    line-height: 0.1;
    padding: 10px;

}

/*--------------------- CHATBOT ICON ------------------*/

.chatbot-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    font-size: 26px;
    color: #28a745;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    z-index: 1000;
    transition: transform 0.2s ease;
}


.chatbot-icon:hover {
    transform: scale(1.1);
    color: #fff;
    background-color: #3c7d38;
}


/* -------------------- DECORAÇÕES (ILUSTRAÇÕES) -------------------- */
.illustration-left-down,
.illustration-right-top,
.illustration-left-top1,
.illustration-left-top2,
.illustration-right-down1,
.illustration-right-down2 {
    position: absolute;
    width: 300px;
    height: 300px;
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease-out;
    z-index: -1;
}

/* Posições específicas */
.illustration-left-down {
    bottom: -100px;
    left: -50px;
    background-image: url('./assets/leftdown.png');
}

.illustration-right-top {
    top: -100px;
    right: -50px;
    background-image: url('./assets/righttop.png');
}

.illustration-left-top1 {
    top: -100px;
    left: -50px;
    background-image: url('./assets/lefttop1.png');
}

.illustration-left-top2 {
    top: -100px;
    left: -50px;
    background-image: url('./assets/lefttop2.png');
}

.illustration-right-down1 {
    bottom: -50px;
    right: -50px;
    background-image: url('./assets/rightdown1.png');
}

.illustration-right-down2 {
    bottom: -50px;
    right: -50px;
    background-image: url('./assets/rightdown2.png');
}


/*Responsividade*/

@media (max-height: 600px) {
    .login-conteiner {
        padding-top: 2vh;
    }

    .login-box {
        transform: scale(0.95);
        /* levemente menor */
    }
}