/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    background-image: url('../img/tela_azul.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
}

/* Mensagens e notificações */
.login-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 32px 32px 18px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 400px;
    margin-top: 30px;
}

.logos-login {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 6px;
    width: 100%;
}

.logos-login img {
    height: 40px;
    max-width: 120px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .login-card {
        width: 95vw;
        padding: 18px 6vw 10px 6vw;
    }
    .logos-login {
        gap: 12px;
        margin-top: 4px;
    }
    .logos-login img {
        height: 28px;
        max-width: 70px;
    }
}

.notificacao {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    color: white;
    display: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease-in-out;
    z-index: 9999;
}

.notificacao.sucesso {
    background-color: #28a745;
    display: block;
}

.notificacao.erro {
    background-color: #dc3545;
    display: block;
}

/* Container principal */
.page {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    min-height: 80vh;
    width: 100%;
    padding-right: 100px;
    position: relative;
}

/* Imagem das crianças */
.page > img {
    max-width: 380px;
    height: auto;
    margin-right: 30px;
    position: static;
    transform: none;
}

/* Formulário de login */
.formLogin {
    width: 500px;
    max-width: 100%;
    padding: 20px 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 1;
    
    /* Bordas coloridas apenas em cima e embaixo */
    border-top: 6px solid;
    border-bottom: 6px solid;
    border-image-source: linear-gradient(90deg, #f9b233 0%, #3ec6e0 50%, #4bb543 100%);
    border-image-slice: 1;
    border-left: none;
    border-right: none;
}

/* Elementos do formulário */
.login-header {
    text-align: center;
    margin-bottom: 15px;
    width: 100%;
}

.login-header h2 {
    font-size: 1.5em;
    margin-bottom: 8px;
}

.logo-inside {
    width: 120px;
    margin-bottom: 10px;
}

.login-instrucoes {
    font-size: 0.9em;
    color: #333;
    margin: 8px 0;
    text-align: center;
}

.login-form {
    width: 100%;
    margin-top: 10px;
}

.form-group {
    margin-bottom: 14px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group input[type="checkbox"] {
    margin-right: 6px;
}

.form-group input[type="checkbox"] + label {
    display: inline;
    font-size: 0.9em;
    margin-bottom: 0;
    cursor: pointer;
}

#mostrarSenhaLogin {
    margin-left: 16px;
}

.btn-acesso {
    width: 100%;
    background: #0056b3;
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    border: none;
    cursor: pointer;
}

.btn-acesso:hover {
    background: #003a75;
}

.login-links {
    text-align: center;
    margin-top: 5px;
    width: 100%;
}

.link-senha {
    color: #0056b3;
    text-decoration: underline;
    font-size: 1em;
    white-space: nowrap;
}

.link-senha:hover {
    color: #003a75;
}

/* Logos abaixo do login */
.logos-container {
    position: absolute;
    bottom: 60px;
    right: 150px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 28px;
}

.logos-container img:first-child {
    width: 200px;
}

.logos-container img:last-child {
    width: 156px;
}

/* Navbar footer */
.navbar {
    width: 100%;
    background: #fff;
    color: #1a1a1a;
    text-align: center;
    padding: 15px 0;
    font-family: 'Inter', Arial, sans-serif;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 999;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.navbar a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    white-space: nowrap;
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Responsividade */

/* --- INÍCIO DO BLOCO ÚNICO DE RESPONSIVIDADE MOBILE --- */
@media (max-width: 768px) {
    html, body {
        width: 100vw;
        min-width: 0;
        height: 100vh;
        min-height: 100vh;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    .page {
        display: flex;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100vw !important;
        min-width: 0 !important;
        min-height: 100vh !important;
        padding: 8px !important;
        box-sizing: border-box !important;
    }
    .page > img {
        margin-right: 0 !important;
        margin-bottom: 20px !important;
        max-width: 90% !important;
        height: auto !important;
        position: static !important;
        transform: none !important;
    }
    .formLogin {
        width: 95vw !important;
        max-width: 400px !important;
        min-width: 220px !important;
        padding: 12px 8px !important;
    }
    .logos-container {
        position: relative !important;
        bottom: auto !important;
        margin-top: 0px !important;
        width: 100vw !important;
        display: flex !important;
        justify-content: center !important;
        gap: 12px !important;
        margin-bottom: 60px !important;
    }
    .navbar {
        position: static !important;
        bottom: auto !important;
        box-shadow: none !important;
        border-top: none !important;
        margin-bottom: 12px !important;
    }
}
/* --- FIM DO BLOCO ÚNICO DE RESPONSIVIDADE MOBILE --- */
