:root {
    --bg: #f8f7f2;
    --black: #050505;
    --blue: #00549f;
    --gray: #b7b7b7;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--black); overflow-x: hidden; }

/* ==========================================================================
   3. CORPO CENTRAL (ROBÔ + CARD LADO A LADO)
   ========================================================================== */
.conteudo-login {
    /* Mantém a ilustração e o formulário lado a lado no espaço principal da tela. */
    display: flex;
    justify-content: center; 
    align-items: center;     
    gap: 550px; 
    flex: 1;                 
    padding: 40px 50px;
}

.gif-robo {
    width: 450px;          
    max-width: 90%;        
    height: auto;          
}

.area-login {
    background-color: var(--white);
    padding: 45px 40px;
    border-radius: 32px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Sombra suavizada para um visual mais limpo */
    width: 100%;
    max-width: 450px;    
}

.area-login h1 {
    text-align: center;
    font-size: 32px;
    color: var(--black);
    margin-bottom: 30px; 
}

.mensagem-erro {
    background-color: #ffe7e7;
    border: 1px solid #d93434;
    border-radius: 10px;
    color: #8a1414;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    padding: 12px 14px;
    text-align: center;
}

/* ==========================================================================
   4. CAMPOS DE ENTRADA, LINKS E BOTÃO INTERNO
   ========================================================================== */
.grupo-campo {
    margin-bottom: 20px; 
}

.grupo-campo label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--black);
    font-size: 16px;
}

.grupo-campo input {
    width: 100%;
    padding: 15px 20px;   
    border: 1.5px solid var(--blue); 
    border-radius: 14px;  
    font-size: 16px;
    outline: none;
}

.link-esqueceu {
    display: inline-block;
    color: var(--blue);
    text-decoration: none; 
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;  
}

.link-esqueceu:hover {
    text-decoration: underline; 
}

.botao-entrar {
    display: block;
    width: 65%;           
    margin: 0 auto 25px;  
    background-color: var(--blue);
    color: var(--white);
    border: none;
    padding: 13px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;  
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.botao-entrar:hover {
    filter: brightness(1.2);
}

.texto-politica {
    font-size: 12px;
    color: var(--gray);
    text-align: center;
    line-height: 1.6;     
}

.texto-politica a {
    color: var(--gray);
    text-decoration: underline; 
}

/* ==========================================================================
   5. POSICIONAMENTO DO BOTÃO MOSTRAR SENHA (OLHO)
   ========================================================================== */
.input-container {
    position: relative; /* Define que os filhos absolutos se alinham por aqui */
}

/* Dá um espaço no final do texto do input para não ficar embaixo do olho */
.input-container input {
    padding-right: 50px; 
}

#btn-mostrar {
    position: absolute;
    right: 4px;
    top: 50%;
    /* O calc puxa o olho para baixo compensando a altura do label 'Senha:' */
    transform: translateY(calc(-50% + 12px)); 
    background: none;
    border: none;
    cursor: pointer; 
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    z-index: 5;
}

#btn-mostrar img {
    width: 24px;
    height: 24px;
    display: block;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img { max-width: 100%; }
.cabecalho-site,
.cabecalho-site * { font-family: "Poppins", Arial, sans-serif; }

@media (max-width: 1050px) {
    .conteudo-login { gap: clamp(40px, 12vw, 180px); }
    .gif-robo { width: min(360px, 38vw); }
}

@media (max-width: 720px) {
    .conteudo-login {
        flex-direction: column;
        gap: 12px;
        justify-content: flex-start;
        padding: 12px 16px 28px;
    }
    .robo-area {
        order: 1;
        display: flex;
        justify-content: center;
        max-height: 132px;
    }
    .area-login {
        order: 2;
        max-width: 100%;
        padding: 26px 20px;
        border-radius: 24px;
    }
    .area-login h1 { font-size: 28px; margin-bottom: 22px; }
    .gif-robo { width: min(132px, 38vw); max-height: 132px; }
    .grupo-campo { margin-bottom: 16px; }
    .grupo-campo input { min-height: 48px; }
    .link-esqueceu { min-height: 44px; margin-bottom: 18px; }
    .botao-entrar { width: 100%; }
    .botao-entrar { min-height: 48px; margin-bottom: 20px; }
    .texto-politica { font-size: 13px; }
}

@media (max-width: 380px) {
    .conteudo-login { padding-inline: 12px; }
    .area-login { padding-inline: 16px; }
}
