/* Centralização do Body */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #7d8e51;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* Container Principal */
.container {
    position: relative;
    max-width: 850px;
    width: 100%;
    background: #fff;
    padding: 30px 30px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    display: flex;
    /* Mantém cover e forms lado a lado */
}

.cover {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #eee;
}

.cover img {
    width: 100%;
    max-width: 320px;
    height: auto;
}

.forms {
    width: 50%;
    padding: 0 20px;
}

.title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.subtitle {
    color: #666;
    font-size: 20px;
    margin: 1px;
    padding-top: 7px;
}

/* ESTILO DOS ALERTAS */
.mensagens-container {
    width: 100%;
    margin-bottom: 3px;
}

.alert-login {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.alert-login.erro {
    background-color: #fce4e4;
    color: #cc0000;
    border: 1px solid #fcc2c2;
}

.alert-login.sucesso {
    background-color: #e7f4e4;
    color: #2d5a27;
    border: 1px solid #c2e2b8;
}

.alert-login i {
    margin-right: 10px;
}

/* INPUTS */
/* O Container é quem manda na linha de baixo */
.input-boxes .input-container {
    position: relative;
    height: 50px;
    width: 100%;
    margin: 7px 0;
    display: flex;
    align-items: center;
    /* A linha que você quer manter */
    border-bottom: 2px solid #ccc; 
    transition: all 0.3s ease;
}

/* O input fica "invisível" por dentro, sem bordas próprias */
.input-container input {
    height: 100%;
    width: 100%;
    outline: none;
    border: none ; /* Garante que o input não tenha borda própria */
    background: transparent ; /* Evita que o fundo branco cubra a linha */
    padding-left: 35px;
    font-size: 16px;
    box-shadow: none ; /* Remove sombras chatas de preenchimento */
}

/* Efeito de destaque: quando clicar para digitar, a linha fica verde */
.input-boxes .input-container:focus-within {
    border-bottom: 2px solid #7d8e51;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #333;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset;
    transition: background-color 5000s ease-in-out 0s;
}

.input-container i.icon-left {
    position: absolute;
    left: 5px;
    color: #7d8e51;
}

.input-container input[type="password"] {
    padding-right: 40px;
}

.input-container #toggleSenha {
    position: absolute;
    right: 5px;
    cursor: pointer;
    color: #7d8e51;
    z-index: 10;
}

.forgot-password {
    text-align: right;
    margin-top: -5px;
}

.forgot-password a {
    color: #7d8e51;
    font-size: 13px;
    text-decoration: none;
}

.button {
    margin-top: 20px;
}

.button input {
    width: 100%;
    height: 45px;
    background: #4b572d;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.button input:hover {
    background: #3a4423;
}

.signup-text {
    text-align: center;
    margin-top: 20px;
}

.signup-text a {
    color: #4b572d;
    font-weight: 600;
    text-decoration: none;
}

.mensagens-container {
    margin: 5px 0;
    min-height: 45px; /* Evita que o layout "pule" quando a mensagem aparece */
}

.alert-login {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.5s ease;
}

.alert-login.erro {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-login.sucesso {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVIDADE DO LOGIN */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
    .container {
        flex-direction: column;
        max-width: 450px;
        width: 100%;
        padding: 25px 20px;
        align-items: center;
    }
    .cover {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    .cover img {
        max-width: 180px;
    }
    .forms {
        width: 100%;
        padding: 0;
    }
    .title {
        font-size: 24px;
        text-align: center;
    }
    .subtitle {
        font-size: 16px;
        text-align: center;
        margin-bottom: 15px;
    }
}

