/* ==========================================================================
   ESTILOS EXCLUSIVOS DA LANDING PAGE DE LOGIN (SIMPLES E CLEAN)
   ========================================================================== */

body.login-page-body {
    padding-top: 0 !important;
    background:
        radial-gradient(circle at 18% 8%, rgba(99, 102, 241, 0.08), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(124, 58, 237, 0.06), transparent 30%),
        var(--bg-app) !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
    position: relative;
}

.landing-wrapper {
    width: 100%;
    max-width: 1180px;
    margin: clamp(34px, 5.5vw, 68px) auto clamp(24px, 4vw, 42px);
    padding: 0 clamp(18px, 4vw, 28px);
    display: grid;
    grid-template-columns: minmax(0, 620px) minmax(340px, 420px);
    gap: clamp(34px, 7vw, 78px);
    align-items: center;
    flex: 1;
    justify-content: center;
}

/* FIX (Fase 2 - Hotfix UX 2.4F): separa apresentação e login para permitir
   ordem mobile mais parecida com rede social: chamada, acesso e depois benefícios. */
.landing-left {
    min-width: 0;
}

.landing-hero {
    max-width: 620px;
}

.hero-text-header h1 {
    font-size: clamp(2.35rem, 4.4vw, 3.28rem);
    color: #1e293b;
    line-height: 1.04;
    margin-bottom: 15px;
    font-weight: 900;
    letter-spacing: -0.045em;
    max-width: 10.5em;
}

.hero-text-header h1 .highlight {
    color: var(--accent);
}

.hero-text-header > p {
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    color: #64748b;
    margin-bottom: 30px;
    max-width: 560px;
    line-height: 1.62;
}

/* ==========================================================================
   PALCO DOS CARDS FLUTUANTES (AJUSTADO E ORGANIZADO)
   ========================================================================== */
.floating-cards-stage {
    position: relative;
    width: 100%;
    min-height: 374px;
    margin-top: 22px;
}

/* Base de Design dos novos Cards Modernos */
.feature-card-item {
    position: absolute;
    background: #ffffff;
    padding: 18px 22px;
    border-radius: 18px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: min(92%, 500px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04), 0 2px 5px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /*animation: smoothFloat 4s ease-in-out infinite alternate;*/
}

.feature-card-item:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

/* Customização dos backgrounds dos ícones */
.feature-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px; /* Ajuste milimétrico para centralizar com a primeira linha do título */
}

.box-acerto { background: #f0fdf4; }       
.box-estatistica { background: #eff6ff; }  
.box-trofeu { background: #fef3c7; }       

.feature-icon-box img { 
    width: 22px; 
    height: 22px; 
}

.feature-text {
    flex: 1; /* Força o bloco de texto a ocupar todo o espaço restante ordenadamente */
}

.feature-text h3 { 
    font-size: 1rem;
    color: #1e293b; 
    margin-bottom: 4px; 
    font-weight: 700;
}

.feature-text p { 
    font-size: 0.87rem;
    color: #64748b; 
    line-height: 1.45; 
    margin: 0;
}

/* Posições controladas com espaçamento perfeitamente simétrico e balanceado */
.card-pos-1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.card-pos-2 {
    top: 132px;
    left: 8%;   
    animation-delay: 1s;
}

.card-pos-3 {
    /* FIX (Fase 2 - Hotfix UX 2.4G): iguala o respiro entre os cards do palco desktop/tablet. */
    top: 260px;
    left: 2%;
    animation-delay: 0.5s;
}

/* Animação leve e harmônica de flutuação */
@keyframes smoothFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

/* ==========================================================================
   LADO DIREITO - CARD DE LOGIN PROPORCIONAL
   ========================================================================== */
.landing-login-box {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: clamp(28px, 3.4vw, 40px);
    border-radius: 24px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
    text-align: center;
    margin: 0 auto;
}

.login-logo {
    display: block;
    height: 32px;
    width: auto;
    max-width: 100%;
    margin: 0 auto 25px auto;
}

.landing-login-box h2 { 
    font-size: clamp(1.28rem, 2vw, 1.48rem);
    color: #1e293b; 
    margin-bottom: 8px; 
    font-weight: 700; 
}

.landing-login-box p.login-sub { 
    color: #64748b; 
    font-size: 0.94rem;
    margin-bottom: 25px; 
    line-height: 1.48;
}

.google-btn-container { 
    display: flex; 
    justify-content: center; 
    margin-bottom: 25px; 
    min-height: 44px; 
}

.login-divider { 
    display: flex; 
    align-items: center; 
    text-align: center; 
    color: #94a3b8; 
    font-size: 0.85rem; 
    margin: 20px 0; 
}

.login-divider::before, .login-divider::after { 
    content: ''; 
    flex: 1; 
    border-bottom: 1px solid #e2e8f0; 
}

.login-divider:not(:empty)::before { margin-right: .5em; }
.login-divider:not(:empty)::after { margin-left: .5em; }

.security-list { 
    text-align: left; 
    display: flex; 
    flex-direction: column; 
    gap: 15px;
    margin-bottom: 25px; 
}

.security-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.security-item img { 
    width: 30px; 
    opacity: 0.6; 
}

.security-item span { 
    font-size: 0.88rem;
    color: #475569; 
    font-weight: 500; 
    line-height: 1.38;
}

.login-footer-terms { 
    background: linear-gradient(135deg, #f8fafc 0%, #f5f3ff 100%);
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.78);
    font-size: 0.78rem;
    color: #64748b; 
    line-height: 1.42;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: left;
}

.terms-brasao-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
}

.login-footer-terms a { 
    color: var(--accent); 
    text-decoration: none; 
    font-weight: 600; 
}

/* ==========================================================================
   RODAPÉ INTEGRADO
   ========================================================================== */
.main-footer {
    background: transparent;
    width: 100%;
    padding: 10px 0 24px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 clamp(18px, 4vw, 28px);
}

.footer-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 12px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(226, 232, 240, 0.82);
    border-radius: 999px;
}

.stat-icon-clean {
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: 0.42;
}

.stat-info {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1;
}

.stat-info strong {
    color: #475569;
    font-weight: 800;
}

.footer-disclaimer {
    max-width: 760px;
    margin: 10px auto 0;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.55;
    text-align: center;
}

.footer-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 14px auto 10px;
    max-width: 520px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
}

.footer-links a {
    color: inherit; 
    text-decoration: none;
    margin: 0;
    font-weight: 600;
}

.footer-links a:visited,
.footer-links a:active {
    color: #64748b;
}

.footer-links a:hover {
    color: #334155; 
    text-decoration: underline;
}

.footer-copy {
    margin: 8px 0 0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.78rem;
}

/* Ajustes Responsivos */
@media (max-width: 900px) {
    .landing-wrapper {
        max-width: 620px;
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        margin-top: 26px;
    }

    /* FIX (Fase 2 - Hotfix UX 2.4F): no mobile, o login sobe antes dos cards,
       como em aplicativos sociais, reduzindo a sensação de página comprida. */
    .landing-left {
        display: contents;
    }

    .landing-hero {
        order: 1;
    }

    .landing-login-box {
        order: 2;
        max-width: 460px;
        padding: 30px 24px;
    }

    .floating-cards-stage {
        order: 3;
        min-height: auto;
        display: grid;
        gap: 14px;
        margin-top: 0;
    }

    .feature-card-item {
        position: static;
        width: 100%;
        max-width: none;
        animation: none !important;
    }

    .hero-text-header {
        text-align: left;
    }

    .hero-text-header h1 {
        max-width: 9.6em;
    }
}

@media (max-width: 560px) {
    .landing-wrapper {
        padding: 0 12px;
        margin-top: 22px;
        gap: 20px;
    }

    .hero-text-header h1 {
        font-size: clamp(2rem, 9.4vw, 2.55rem);
        line-height: 1.06;
        margin-bottom: 12px;
    }

    .hero-text-header > p {
        font-size: 1rem;
        line-height: 1.56;
        margin-bottom: 0;
    }

    .landing-login-box {
        border-radius: 22px;
        padding: 28px 20px;
    }

    .login-logo {
        height: 30px;
        margin-bottom: 22px;
    }

    .google-btn-container {
        margin-bottom: 22px;
    }

    .feature-card-item {
        padding: 18px 20px;
        border-radius: 18px;
        gap: 14px;
    }

    .feature-icon-box {
        width: 46px;
        height: 46px;
    }

    .feature-text h3 {
        font-size: 1rem;
    }

    .feature-text p {
        font-size: 0.9rem;
        line-height: 1.46;
    }

    .footer-stats {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        max-width: 330px;
        margin-left: auto;
        margin-right: auto;
    }

    .stat-box {
        justify-content: flex-start;
        border-radius: 16px;
        padding: 9px 12px;
        background: rgba(255, 255, 255, 0.74);
    }

    .footer-disclaimer {
        max-width: 360px;
        font-size: 0.76rem;
        text-align: left;
        background: rgba(255, 255, 255, 0.58);
        border: 1px solid rgba(226, 232, 240, 0.74);
        border-radius: 16px;
        padding: 12px 14px;
    }

    .footer-divider {
        display: none;
    }

    .footer-links {
        margin-top: 14px;
        gap: 10px 14px;
    }
}

@media (max-width: 380px) {
    .landing-wrapper {
        padding: 0 10px;
    }

    .landing-login-box {
        padding: 24px 16px;
    }

    .feature-card-item {
        padding: 16px;
    }

    .security-item span,
    .feature-text p {
        font-size: 0.84rem;
    }
}

/* CTA público para o Google e para visitantes que ainda não querem logar. */
.login-public-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin: -10px 0 10px;
    padding: 11px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #4B3CB8;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.login-public-demo:hover,
.login-public-demo:focus-visible {
    background: #f3f0ff;
    border-color: rgba(75, 60, 184, .24);
    transform: translateY(-1px);
    outline: none;
}

/* Hotfix 2026-07-18: espaçamento uniforme entre cards da landing. */
.floating-cards-stage {
    position: relative;
    display: grid;
    gap: 28px;
    min-height: auto;
    margin-top: 22px;
}
.feature-card-item {
    position: relative;
    inset: auto;
    width: min(92%, 500px);
}
.card-pos-1,
.card-pos-2,
.card-pos-3 {
    top: auto;
    left: auto;
}
.card-pos-1 { justify-self: start; }
.card-pos-2 { justify-self: center; }
.card-pos-3 { justify-self: start; margin-left: 2%; }
@media (max-width: 760px) {
    .floating-cards-stage { gap: 18px; }
    .feature-card-item { width: 100%; justify-self: stretch; margin-left: 0; }
}
