* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.login-page {
    display: flex;
    height: 100vh;
}

/* IMAGEM */
.left-side {
    flex: 1.4;
    position: relative;
    height: 100%;
}

.left-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.erro-tela {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none; 
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    width: 70%;
}

/* Quando ativa */
.erro-tela.ativo {
    display: block;
}

/* PAINEL DIREITO */
.right-side {
    flex: 0.8;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* importante */
}

/* BOTÃO VOLTAR */
.btn-voltar {
    position: absolute;
    top: 25px;
    right: 40px;
    text-decoration: none;
    color: #003b8e;
    font-weight: 600;
    font-size: 20px;
    transition: 0.3s;
}

.btn-voltar:hover {
    color: #001f4d;
}


/* CONTAINER FORM */
.form-container {
    width: 80%;
    max-width: 400px;
}

.logo {
    width: 140px;
    margin-bottom: 30px;
}

h2 {
    margin-bottom: 25px;
    color: #003b8e;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #003b8e;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* CONTORNO AZUL AO CLICAR PARA DIGITAR O CPF */
input:focus {
    outline: none;
    border: 1px solid #0056d6;
    box-shadow: 0 0 0 2px rgba(0,86,214,0.2);
}

/* BOTÃO */
button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 30px;
    background: #003b8e;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #002c6a;
}
.footer {
    background-color: #1f1f1f;
    color: #ccc;
    padding: 60px 0;
}

.container-footer {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
}

.logo-footer {
    height: 40px;
    margin-bottom: 20px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #ccc;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: white;
}

.apps img {
    display: block;
    width: 120px;
    height: 50px;
    margin-bottom: 1px;
    cursor: pointer;
    transition: 0.3s;
}

/* Container do botão fixo */
.whatsapp-fixo {
    position: fixed;
    bottom: 60px;
    left: 30;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: 9999;
    background-color: transparent;
    padding: 0;
    border-radius: 30px;
    box-shadow: none;
    transition: all 0.3s ease;
}

.whatsapp-fixo:hover {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 5px 15px 5px 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


.whatsapp-icon-flutuante {
    display: inline-block;
    width: 65px;      
    height: 65px;
    border-radius: 50%;
    background-color: #25D366;
    background-image: url("img/WhatsApp\ logo.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px 40px;  
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
}

.whatsapp-fixo:hover .whatsapp-icon-flutuante {
    transform: scale(1.1);
}

/* Texto ESCONDIDO por padrão */
.texto-whatsapp-flutuante {
    color: #444;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;

    /* Animação de aparecer */
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.4s ease, opacity 0.3s ease;
}

/* Texto APARECE ao passar o mouse */
.whatsapp-fixo:hover .texto-whatsapp-flutuante {
    max-width: 200px;
    opacity: 1;
}

/* ================================= */
/* MOBILE DEFINITIVO */
/* ================================= */

@media screen and (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .login-page {
        display: block;
        height: auto;
    }

    /* REMOVE COMPLETAMENTE A IMAGEM */
    .left-side {
        display: none !important;
        width: 0;
        height: 0;
        overflow: hidden;
    }

    /* FORMULÁRIO OCUPA TUDO */
    .right-side {
        width: 100%;
        flex: none;
        padding: 60px 25px;
        background: white;
    }

    .form-container {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .logo {
        width: 170px;
        margin-bottom: 30px;
    }

    input {
        padding: 16px;
        font-size: 16px;
    }

    button {
        padding: 18px;
        font-size: 16px;
        border-radius: 40px;
    }

    /* FOOTER EM COLUNA */
    .container-footer {
        flex-direction: column;
    }

}