html,
body {
    height: 100%;
    margin: 0;
}

body.login-page {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0d131a;
    background-image: url("../imagens/login-background.511910a27084.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.login-layout {
    width: 100%;
    display: flex;
    min-height: 100vh;
}

/* ==========================================================================
   Painel Esquerdo - Card Branco Ampliado e Sutilmente Transparente
   ========================================================================== */
.login-features-panel {
    width: 46vw;
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.presentation-card {
    background: rgba(245, 246, 248, 0.88); 
    border-radius: 28px;
    padding: 45px 35px;
    width: 100%;
    max-width: 580px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.brand-area {
    text-align: center;
    margin-bottom: 35px;
}

.brand-logo-clean {
    width: 230px;
    max-width: 100%;
    height: auto;
    transition: width 0.2s ease;
}

.presentation-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e3a8a;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 35px;
    letter-spacing: 0.03em;
    transition: font-size 0.2s ease;
}

/* Estrutura Dinâmica de Benefícios com Ícones */
.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(14, 165, 233, 0.12);
    border-radius: 10px;
    color: #0ea5e9;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-text {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
    font-weight: 500;
}

/* ==========================================================================
   Painel Direito - Menu de Login Firme à Direita
   ========================================================================== */
.login-form-panel {
    width: 54vw;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: none;
    padding: 40px 80px;
    box-sizing: border-box;
}

.login-box {
    width: 100%;
    max-width: 360px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 30px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin-left: auto; /* Garante alinhamento à direita no contexto flex desktop */
}

.login-intro-text {
    color: #e2e8f0;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 25px;
}

.login-form .form-group {
    margin-bottom: 22px;
}

.login-form label {
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.login-form .form-control {
    height: 48px;
    background-color: #f1f5f9 !important;
    border: none;
    border-radius: 14px;
    color: #0f172a !important;
    font-size: 0.95rem;
    padding: 12px 16px;
    font-weight: 500;
}

.login-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.4);
}

.login-options {
    margin-bottom: 26px;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 0.88rem;
    cursor: pointer;
}

.remember-me input {
    width: 16px;
    height: 16px;
    accent-color: #0ea5e9;
}

.login-submit {
    height: 50px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(90deg, #0f4c9c 0%, #1e70be 50%, #40c4aa 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: transform 0.15s ease, filter 0.15s ease;
    box-shadow: 0 4px 15px rgba(15, 76, 156, 0.3);
}

.login-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Informações de Contato / Suporte na base do Menu */
.login-support {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.support-title {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    font-weight: 700;
}

.support-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.support-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s ease;
}

.support-item:hover {
    color: #ffffff;
    text-decoration: none;
}

.whatsapp-link:hover { color: #40c4aa; }
.email-link:hover { color: #38bdf8; }

/* ==========================================================================
   Responsividade Adaptativa Total (Correção para Telas Pequenas)
   ========================================================================== */
@media (max-width: 1024px) {
    body.login-page {
        overflow-y: auto;
    }
    
    .login-layout {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 30px 15px;
        min-height: 100vh;
    }
    
    /* Faz os painéis ocuparem largura total em formato de coluna */
    .login-features-panel, 
    .login-form-panel {
        width: 100%;
        padding: 15px 0;
        justify-content: center;
        align-items: center;
    }
    
    .login-features-panel {
        margin-bottom: 25px;
    }

    /* 🌟 Centralização absoluta para o menu de login */
    .login-box {
        margin: 0 auto; 
        max-width: 100%;
        width: 100%;
    }
    
    /* ⚡ Diminui o logo e o título dinamicamente em tablets e celulares */
    .brand-logo-clean {
        width: 170px;
    }
    
    .presentation-title {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .presentation-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    /* ⚡ Reduções adicionais exclusivas para smartphones pequenos */
    .brand-logo-clean {
        width: 140px;
    }
    
    .presentation-title {
        font-size: 0.88rem;
    }
    
    .benefit-text {
        font-size: 0.88rem;
    }
    
    .login-box {
        padding: 30px 20px 20px;
    }
}