/**
 * CSS específico para correções do formulário de login
 * Inclua este arquivo APÓS o estilos.css
 */

/* Correções mínimas para centralização - mantém design original */
.login_home {
    background-image: url(../images/note.png);
    width: 819px;
    height: 633px;
    margin: 35px auto 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
}

.logo_login {
    width: 187px;
    height: 140px;
    display: block;
    margin: 0 auto 30px;
}

.form_login {
    width: 350px;
    margin: 0 auto;
    text-align: center;
}

/* Melhorias mínimas nos campos - mantém compatibilidade */
#form_login input[type="text"],
#form_login input[type="password"] {
    border: 1px solid #ccc;
    width: 200px;
    height: 30px;
    padding: 0 10px;
    margin: 0 auto;
    display: block;
    border-radius: 3px;
    font-size: 14px;
}

#form_login input[type="text"]:focus,
#form_login input[type="password"]:focus {
    border-color: #019B07;
    outline: none;
}

/* Checkbox alinhado */
#form_login div label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin: 8px 0;
}

#form_login input[type="checkbox"] {
    margin-right: 6px;
}

/* CSS das mensagens de resposta - COMPLETAMENTE REFORMULADO */
.resposta {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px 30px;
    text-align: center;
    display: none;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 320px;
    max-width: 450px;
    font-family: Arial, sans-serif;
    cursor: pointer;
}

/* Overlay de fundo */
.resposta::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Botão X para fechar */
.resposta::after {
    content: '×';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.resposta:hover::after {
    color: #333;
}

/* Conteúdo das mensagens */
.resposta p {
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.resposta img {
    display: block;
    margin: 0 auto 15px;
    max-width: 48px;
    height: auto;
}

/* Estilos para diferentes tipos de mensagem */
.resposta .erro {
    color: #dc3545;
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin: 10px 0;
}

.resposta .atencao {
    color: #ff9800;
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin: 10px 0;
}

.resposta .sucesso {
    color: #28a745;
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin: 10px 0;
}

/* Mensagens específicas por tipo */
.resposta.erro-msg {
    border-left: 4px solid #dc3545;
}

.resposta.sucesso-msg {
    border-left: 4px solid #28a745;
}

.resposta.atencao-msg {
    border-left: 4px solid #ff9800;
}

/* Responsividade simplificada */
@media screen and (max-width: 900px) {
    .login_home {
        width: 90%;
        margin: 20px auto 0;
    }

    .resposta {
        width: 90%;
        max-width: 400px;
    }
}

@media screen and (max-width: 600px) {
    .login_home {
        width: 95%;
        background-size: contain;
        height: auto;
        min-height: 500px;
        padding: 20px;
    }

    .logo_login {
        width: 150px;
        height: auto;
    }

    #form_login input[type="text"],
    #form_login input[type="password"] {
        width: 250px;
        height: 35px;
        font-size: 16px;
    }

    .resposta {
        width: 95%;
        padding: 20px;
        font-size: 14px;
    }
}

/* Animação suave para resposta */
.resposta {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Validação jQuery */
label.error {
    color: #dc3545 !important;
    font-size: 12px !important;
    margin-top: 5px !important;
    display: block !important;
    text-align: center !important;
}
