/* 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 - COMENTADO PARA NÃO CONFLITAR */
/*
.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;
        background: linear-gradient(135deg, #007bff 0%, #0056b3 50%, #004085 100%) !important;
        animation: gradientShift 3s ease infinite !important;
    }
}
/* --- FIM DO BLOCO ÚNICO DE RESPONSIVIDADE MOBILE --- */

/* Estilos para o Chat de Atendimento - Estilo Windows Taskbar */
.navbar-content {
    display: flex;
    justify-content: center !important;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Barra de Tarefas Estilo Windows */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(to bottom, #2d2d30 0%, #1e1e1e 100%);
    border-top: 1px solid #3f3f46;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.taskbar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    max-width: 100%;
    padding: 0 8px;
    position: relative;
}

.taskbar-left {
    display: flex;
    align-items: center;
    position: absolute;
    left: 8px;
}

.taskbar-right {
    position: absolute;
    right: 8px;
    display: flex;
    align-items: center;
}

/* Link WhatsApp na taskbar */
.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #25d366;
    text-decoration: none;
    font-size: 19.5px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.1);
    color: #128c7e;
    text-decoration: none;
}

.whatsapp-link i {
    font-size: 20px;
}

.btn-chat-atendimento {
    background: linear-gradient(135deg, #3DA3DC 0%, #2E8BC0 50%, #1E6BA0 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 32px;
    box-shadow: 0 2px 6px rgba(61, 163, 220, 0.3);
    position: relative;
    overflow: hidden;
    animation: gradientShift 5s ease-in-out infinite;
}

/* Animação do gradiente */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 25%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 75%; }
    100% { background-position: 0% 50%; }
}

/* Efeito hover */
.btn-chat-atendimento:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 163, 220, 0.4);
    color: white;
    text-decoration: none;
    animation-play-state: paused;
    background: linear-gradient(135deg, #2E8BC0 0%, #1E6BA0 50%, #0F4A75 100%);
}

/* Efeito active */
.btn-chat-atendimento:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(61, 163, 220, 0.3);
}

/* Ícone */
.btn-chat-atendimento i {
    font-size: 12px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Brilho sutil */
.btn-chat-atendimento::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s;
}

.btn-chat-atendimento:hover::before {
    left: 100%;
}

/* Responsividade */
@media (max-width: 768px) {
    .taskbar {
        height: 44px;
    }
    
    .taskbar-content {
        padding: 0 4px;
    }
    
    .whatsapp-link {
        font-size: 14px;
        padding: 6px 8px;
        gap: 6px;
    }
    
    .whatsapp-link span {
        display: none;
    }
    
    .whatsapp-link i {
        font-size: 16px;
    }
    
    .btn-chat-atendimento {
        padding: 6px 8px;
        font-size: 10px;
        min-height: 28px;
        gap: 3px;
    }
    
    .btn-chat-atendimento i {
        font-size: 10px;
    }
}
