/* ==========================================
   GRANAEVO — LOGIN CSS
   Versão Segura e Otimizada — V2.5

   MELHORIAS APLICADAS v2.1 (mantidas):
   [1] pointer-events: none em todos os pseudoelementos decorativos
   [2] @supports fallback para backdrop-filter
   [3] will-change restrito a elementos que realmente animam
   [4] Comentário de segurança em shimmer + overflow: hidden explícito no pai
   [5] prefers-reduced-motion já presente — mantido e expandido
   [6] Nenhum content: attr() com dados externos — mantido seguro
   [FIX-CSS-1] .auth-message.info adicionado
   [FIX-ANIM-1] Bloco de animStyle removido do login.js

   MELHORIAS v2.2 (mantidas):
   [FIX-CSS-2] .auth-message.visible adicionado.
   [FIX-CSS-3] .input-shake adicionado.
   [FIX-CSS-4] .input-error-border adicionado.
   [FIX-CSS-5] .loading-svg adicionado.
   [FIX-CSS-6] .input-wrapper:focus-within adicionado.

   MELHORIAS v2.3 (mantidas):
   [FIX-CSS-7] @keyframes captchaReveal adicionado.
   [FIX-CSS-8] animation-fill-mode: forwards em .captcha-visible.
   [FIX-CSS-9] display removido do seletor #captchaContainer.

   MELHORIAS v2.4 — REMOVIDAS/SIMPLIFICADAS EM V2.5:
   A abordagem de especificidade com #captchaContainer.captcha-visible
   criava complexidade desnecessária e era frágil. Substituída em v2.5.

   MELHORIAS v2.5 (ESTA VERSÃO — correção definitiva do captcha invisível):
   [FIX-CSS-12] display COMPLETAMENTE REMOVIDO do seletor #captchaContainer.

       CAUSA RAIZ DO BUG (VERSÃO DEFINITIVA):
       Toda abordagem baseada em seletor de ID para controlar display
       cria um ponto de conflito de especificidade que é difícil de
       sobrescrever de forma previsível entre browsers.

       SOLUÇÃO DEFINITIVA v2.5:
       O seletor #captchaContainer NÃO define nenhum valor de display.
       O display é controlado EXCLUSIVAMENTE pelas classes utilitárias:
         .captcha-hidden  { display: none; }   → especificidade (0,1,0)
         .captcha-visible { display: flex; ... } → especificidade (0,1,0)
       Zero conflito. Zero ambiguidade. Funciona em todos os browsers.

       O elemento começa com class="captcha-hidden" no HTML.
       O DOMContentLoaded no JS reforça esse estado.
       showCaptcha() remove captcha-hidden e adiciona captcha-visible.
       Não há nenhum seletor de ID competindo com isso.

   [FIX-CSS-13] #captchaContainer.captcha-visible removido (era redundante
       e só existia para compensar o conflito que agora não existe mais).
   ========================================== */

/* ==========================================
   RESET E CONFIGURAÇÕES
   ========================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0a1628;
    --secondary-dark: #0f2744;
    --accent-green: #10b981;
    --accent-emerald: #059669;
    --neon-green: #6ee7b7;
    --neon-cyan: #06b6d4;
    --neon-teal: #14b8a6;
    --glass-bg: rgba(15, 39, 68, 0.4);
    --glass-border: rgba(16, 185, 129, 0.3);
    --success-green: #10b981;
    --error-red: #ef4444;
    --info-blue: #06b6d4;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #0f2744 50%, #1a3a5c 100%);
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 0;
}

/* ==========================================
   PARTÍCULAS DE MOEDAS FLUTUANTES
   ========================================== */
.money-particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none; /* [1] nunca captura eventos */
    overflow: hidden;
}

.money-particle {
    position: absolute;
    font-size: 24px;
    opacity: 0;
    pointer-events: none; /* [1] */
    animation: floatCoin 15s ease-in-out infinite;
}

/* ==========================================
   GRÁFICOS ANIMADOS DE FUNDO
   ========================================== */
.animated-charts {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none; /* [1] */
}

.chart-line {
    position: absolute;
    stroke: var(--neon-green);
    stroke-width: 2;
    fill: none;
    opacity: 0.3;
    filter: blur(1px);
    pointer-events: none; /* [1] */
}

/* ==========================================
   ORBS DE GRADIENTE
   ========================================== */
.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    z-index: 0;
    pointer-events: none; /* [1] orb puramente decorativo */
    will-change: transform; /* [3] */
    animation: float 12s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--neon-green) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: 4s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--neon-teal) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: 8s;
}

/* ==========================================
   KEYFRAMES GLOBAIS
   ========================================== */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(40px, -40px) scale(1.05); }
    66%       { transform: translate(-40px, 40px) scale(0.95); }
}

@keyframes floatCoin {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

@keyframes gridMove {
    0%   { background-position: 0 0, 0 0; }
    100% { background-position: 60px 60px, 60px 60px; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.3); opacity: 0.8; }
}

@keyframes iconPulse {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50%       { opacity: 0.25; transform: scale(1.05); }
}

@keyframes successPop {
    0%   { transform: scale(0); opacity: 0; }
    50%  { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-12px); }
    75%       { transform: translateX(12px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/*
    [FIX-CSS-7] captchaReveal — keyframe DEDICADO para o captcha.
    Separado do fadeInUp global para evitar conflito em edge cases
    de recarga de página. Usa translateY menor (6px vs 30px).
    animation-fill-mode: forwards (em .captcha-visible) garante
    que opacity:1 persista após o fim da animação.
*/
@keyframes captchaReveal {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/*
    [4] shimmer depende de overflow: hidden no elemento pai (.btn-submit).
*/
@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/*
    [FIX-ANIM-1] Keyframes que antes eram injetados via JS.
    Movidos para cá de forma permanente.
*/
@keyframes ripple {
    to { transform: scale(2.5); opacity: 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================
   CONTAINER PRINCIPAL
   ========================================== */
.login-container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1400px;
    width: 90%;
    min-height: 90vh;

    /* [2] backdrop-filter com fallback explícito */
    background: rgba(10, 22, 40, 0.7);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);

    border-radius: 32px;
    border: 1px solid var(--glass-border);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 120px rgba(16, 185, 129, 0.15),
        inset 0 0 80px rgba(16, 185, 129, 0.03);
    overflow: hidden;
    margin: 20px 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* [2] Fallback para browsers sem backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
    .login-container {
        background: rgba(10, 22, 40, 0.97);
    }
}

/* ==========================================
   LADO FINANCEIRO (ESQUERDO)
   ========================================== */
.financial-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.08) 0%,
        rgba(6, 182, 212, 0.06) 50%,
        rgba(20, 184, 166, 0.08) 100%);
    border-right: 1px solid var(--glass-border);
    overflow: hidden;
}

/* [1] pseudoelemento decorativo — nunca deve capturar eventos */
.financial-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.03) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(16, 185, 129, 0.03) 50%, transparent 100%);
    background-size: 60px 60px;
    opacity: 0.5;
    animation: gridMove 20s linear infinite;
    pointer-events: none; /* [1] */
}

.financial-3d-wrapper {
    perspective: 1500px;
    width: 100%;
    max-width: 500px;
}

.financial-visual {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    will-change: transform; /* [3] animação contínua justifica will-change */
    animation: rotateFinancial 10s ease-in-out infinite;
}

@keyframes rotateFinancial {
    0%, 100% { transform: rotateY(-8deg) rotateX(3deg); }
    50%       { transform: rotateY(8deg) rotateX(-3deg); }
}

/* ==========================================
   GROWTH CARD
   ========================================== */
.growth-card {
    width: 100%;
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.15) 0%,
        rgba(5, 150, 105, 0.2) 100%);

    /* [2] backdrop-filter com fallback */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-radius: 24px;
    border: 2px solid rgba(16, 185, 129, 0.2);
    padding: 50px 40px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(16, 185, 129, 0.2),
        inset 0 0 60px rgba(16, 185, 129, 0.05);
    position: relative;
    overflow: hidden;
}

/* [1] borda interna decorativa — sem interação */
.growth-card::before {
    content: '';
    position: absolute;
    inset: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    pointer-events: none; /* [1] */
}

/* [1] orb decorativo de fundo */
.growth-card::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none; /* [1] */
}

.card-content {
    position: relative;
    z-index: 2;
}

/* ==========================================
   SEÇÃO DE LOGO (LADO FINANCEIRO)
   ========================================== */
.logo-section {
    text-align: center;
    margin-bottom: 35px;
}

.logo-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));

    /* [2] backdrop-filter com fallback */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(16, 185, 129, 0.3),
        inset 0 0 30px rgba(16, 185, 129, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* [1] glow de hover — puramente decorativo */
.logo-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    border-radius: 22px;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s ease;
    pointer-events: none; /* [1] */
}

.logo-icon:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(16, 185, 129, 0.5);
}

.logo-icon:hover::before {
    opacity: 0.6;
}

.logo-icon svg {
    width: 50px;
    height: 50px;
    stroke: var(--neon-green);
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.8));
    pointer-events: none; /* [1] svg decorativo */
}

.logo-text {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-shadow: 0 0 40px rgba(16, 185, 129, 0.3);
}

.tagline {
    text-align: center;
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 45px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================
   STATS GRID (LADO FINANCEIRO)
   ========================================== */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    background: rgba(16, 185, 129, 0.08);

    /* [2] backdrop-filter com fallback */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

@supports not (backdrop-filter: blur(1px)) {
    .stat-item {
        background: rgba(15, 39, 68, 0.9);
    }
}

.stat-item:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateX(8px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--neon-green);
    stroke-width: 2;
    pointer-events: none; /* [1] */
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--neon-green);
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

/* ==========================================
   DECORAÇÃO
   ========================================== */
.decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    pointer-events: none; /* [1] elemento puramente decorativo */
}

.deco-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
}

.deco-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    animation: pulse 2s ease-in-out infinite;
}

/* ==========================================
   FEATURES LIST
   ========================================== */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
    opacity: 0.95;
    transition: all 0.3s ease;
    padding: 4px;
}

.feature-item:hover {
    opacity: 1;
    transform: translateX(5px);
}

.feature-item svg {
    width: 22px;
    height: 22px;
    stroke: var(--neon-green);
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
    pointer-events: none; /* [1] */
}

/* ==========================================
   LADO DO FORMULÁRIO (DIREITO)
   ========================================== */
.form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    position: relative;
}

.form-wrapper {
    width: 100%;
    max-width: 480px;
}

/* ==========================================
   SCREENS (TRANSIÇÕES)
   ========================================== */
.screen {
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    width: 100%;
    max-width: 480px;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

.screen.exit-left {
    transform: translateX(-30px);
    opacity: 0;
}

/* ==========================================
   BOTÃO VOLTAR
   ========================================== */
.back-button,
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 35px;
    transition: all 0.3s ease;
    padding: 10px 16px;
    border-radius: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.back-button:hover,
.back-btn:hover {
    color: var(--neon-green);
    background: rgba(16, 185, 129, 0.1);
    transform: translateX(-5px);
}

.back-button svg,
.back-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    pointer-events: none; /* [1] */
}

/* ==========================================
   CABEÇALHO DO FORMULÁRIO
   ========================================== */
.form-header {
    margin-bottom: 40px;
    text-align: center;
}

.form-title {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.form-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   MENSAGENS DE FEEDBACK
   [FIX-CSS-1] .auth-message.info adicionado
   [FIX-CSS-2] .auth-message.visible adicionado.
   ========================================== */
.auth-message {
    display: none;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    align-items: center;
    gap: 12px;
}

/* [FIX-CSS-2] Visibilidade via classe — sem inline style no JS */
.auth-message.visible {
    display: flex;
}

.auth-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.auth-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* [FIX-CSS-1] Estilo para mensagens do tipo 'info' */
.auth-message.info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info-blue);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.auth-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   UTILITÁRIOS DE ESTADO DE INPUT
   [FIX-CSS-3] .input-shake
   [FIX-CSS-4] .input-error-border
   ========================================== */

/* [FIX-CSS-3] */
.input-shake {
    animation: shake 0.5s !important;
    border-color: var(--error-red) !important;
}

/* [FIX-CSS-4] */
.input-error-border {
    border-color: var(--error-red) !important;
}

/* ==========================================
   SPINNER DO BOTÃO
   [FIX-CSS-5] .loading-svg
   ========================================== */
.loading-svg {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

/* ==========================================
   FORMULÁRIO
   ========================================== */
.login-form,
.recovery-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding-left: 5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

/* [FIX-CSS-6] Substitui os event listeners de focus/blur no JS */
.input-wrapper:focus-within {
    transform: scale(1.01);
}

.input-icon {
    position: absolute;
    left: 20px;
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.4);
    pointer-events: none; /* [1] ícone decorativo dentro do input */
    transition: all 0.3s ease;
    z-index: 2;
}

.form-input {
    width: 100%;
    padding: 18px 22px 18px 56px;
    background: rgba(15, 39, 68, 0.5);
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px;
    color: white;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;

    /* [2] backdrop-filter com fallback */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    font-family: inherit;
}

@supports not (backdrop-filter: blur(1px)) {
    .form-input {
        background: rgba(15, 39, 68, 0.92);
    }
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
    border-color: var(--neon-green);
    background: rgba(15, 39, 68, 0.7);
    box-shadow:
        0 0 0 4px rgba(16, 185, 129, 0.1),
        0 0 30px rgba(16, 185, 129, 0.2),
        0 10px 40px rgba(0, 0, 0, 0.2);
}

.form-input:focus ~ .input-icon {
    stroke: var(--neon-green);
    transform: scale(1.1);
}

/* ==========================================
   BOTÃO MOSTRAR/OCULTAR SENHA
   ========================================== */
.toggle-password {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    z-index: 2;
}

.toggle-password:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: scale(1.1);
}

.eye-icon {
    width: 22px;
    height: 22px;
    stroke: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    pointer-events: none; /* [1] */
}

.toggle-password:hover .eye-icon {
    stroke: var(--neon-green);
}

/* ==========================================
   OPÇÕES DO FORMULÁRIO
   ========================================== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -8px;
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.checkbox-wrapper:hover {
    background: rgba(16, 185, 129, 0.05);
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 7px;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(15, 39, 68, 0.5);
    flex-shrink: 0;
}

.checkbox-wrapper input:checked + .checkbox-custom {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* [1] checkmark é pseudoelemento visual — sem interação própria */
.checkbox-wrapper input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    pointer-events: none; /* [1] */
}

.checkbox-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================
   LINK ESQUECI A SENHA
   ========================================== */
.forgot-link {
    font-size: 14px;
    color: var(--neon-green);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 6px;
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* [1] underline decorativo via pseudoelemento */
.forgot-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 6px;
    right: 6px;
    height: 2px;
    background: var(--neon-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    pointer-events: none; /* [1] */
}

.forgot-link:hover::after {
    transform: scaleX(1);
}

.forgot-link:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

/* ==========================================
   BOTÃO DE SUBMIT
   [4] overflow: hidden é crítico para conter o shimmer
   ========================================== */
.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden; /* [4] CRÍTICO — contém o shimmer dentro dos limites do botão */
    transition: all 0.3s ease;
    margin-top: 12px;
    font-family: inherit;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3);
    will-change: transform; /* [3] justificado — hover causa transformação frequente */
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.4s backwards;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow:
        0 20px 50px rgba(16, 185, 129, 0.4),
        0 0 40px rgba(16, 185, 129, 0.3);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* [1] glow de hover — pseudoelemento decorativo */
.btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* [1] */
}

.btn-submit:hover .btn-glow {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out infinite;
}

.btn-text {
    position: relative;
    z-index: 2;
    pointer-events: none; /* [1] */
}

.btn-loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none; /* [1] */
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .btn-loading {
    display: flex;
}

.spinner {
    width: 24px;
    height: 24px;
    pointer-events: none; /* [1] */
}

/* ==========================================
   DIVIDER
   ========================================== */
.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    pointer-events: none; /* [1] elemento separador puramente visual */
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.5s backwards;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3), transparent);
}

.divider-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    pointer-events: auto;
}

/* ==========================================
   SOCIAL LOGIN
   ========================================== */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.6s backwards;
}

.btn-social {
    padding: 14px;
    border-radius: 12px;
    border: 2px solid rgba(16, 185, 129, 0.2);
    background: rgba(15, 39, 68, 0.5);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;

    /* [2] backdrop-filter com fallback */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    font-family: inherit;
}

@supports not (backdrop-filter: blur(1px)) {
    .btn-social {
        background: rgba(15, 39, 68, 0.92);
    }
}

.btn-social svg {
    width: 20px;
    height: 20px;
    pointer-events: none; /* [1] */
}

.btn-social:hover {
    border-color: var(--neon-green);
    background: rgba(15, 39, 68, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

/* ==========================================
   LINK DE REGISTRO
   ========================================== */
.register-link {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 15px;
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.7s backwards;
}

.register-link a {
    color: var(--neon-green);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: all 0.3s ease;
    position: relative;
}

/* [1] underline de hover via pseudoelemento */
.register-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--neon-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    pointer-events: none; /* [1] */
}

.register-link a:hover::after {
    transform: scaleX(1);
}

.register-link a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

/* ==========================================
   RECOVERY ICON
   ========================================== */
.recovery-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    margin: 0 auto 35px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.3);
    color: var(--neon-green);
    position: relative;
}

/* [1] glow pulsante — pseudoelemento decorativo */
.recovery-icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(15px);
    animation: iconPulse 2.5s ease-in-out infinite;
    pointer-events: none; /* [1] */
}

.recovery-icon.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    border-color: var(--neon-green);
}

.recovery-icon.animated {
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.recovery-icon svg {
    width: 56px;
    height: 56px;
    pointer-events: none; /* [1] */
}

/* ==========================================
   CODE INPUTS (MFA / VERIFICAÇÃO)
   ========================================== */
.code-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 35px 0;
}

.code-input {
    width: 56px;
    height: 66px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 14px;
    background: rgba(15, 39, 68, 0.5);
    color: white;
    transition: all 0.3s ease;
    outline: none;

    /* [2] backdrop-filter com fallback */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    font-family: inherit;
}

@supports not (backdrop-filter: blur(1px)) {
    .code-input {
        background: rgba(15, 39, 68, 0.92);
    }
}

.code-input:focus {
    border-color: var(--neon-green);
    background: rgba(15, 39, 68, 0.7);
    box-shadow:
        0 0 0 4px rgba(16, 185, 129, 0.1),
        0 0 30px rgba(16, 185, 129, 0.3);
    transform: scale(1.08);
}

.code-input.filled {
    border-color: var(--neon-green);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.code-input.error {
    border-color: var(--error-red);
    animation: shake 0.5s;
}

/* ==========================================
   MENSAGEM DE ERRO
   ========================================== */
.error-message {
    color: var(--error-red);
    font-size: 14px;
    text-align: center;
    margin: 20px 0;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   HELP TEXT
   ========================================== */
.help-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 25px;
}

.link-text {
    color: var(--neon-green);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
}

/* [1] underline de hover */
.link-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--neon-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    pointer-events: none; /* [1] */
}

.link-text:hover::after {
    transform: scaleX(1);
}

.link-text:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

/* ==========================================
   RECAPTCHA CONTAINER
   ==========================================

   [FIX-CSS-12] CORREÇÃO DEFINITIVA — v2.5.

   PROBLEMA DAS VERSÕES ANTERIORES:
   Tentar controlar display via seletor de ID (#captchaContainer)
   criava conflito de especificidade com os seletores de classe
   (.captcha-hidden / .captcha-visible). Mesmo com a correção v2.4
   adicionando #captchaContainer.captcha-visible (especificidade 1,1,0),
   havia fragilidade em edge cases de reinicialização de página e
   browsers que processam cascata de forma ligeiramente diferente.

   SOLUÇÃO v2.5 — DEFINITIVA:
   O seletor #captchaContainer NÃO define nenhum valor de display.
   A responsabilidade de display é 100% das classes utilitárias:

     .captcha-hidden  → display: none  (especificidade 0,1,0)
     .captcha-visible → display: flex  (especificidade 0,1,0)

   Como não há seletor de ID competindo, não há conflito.
   A classe no HTML começa como "captcha-hidden".
   O JS em DOMContentLoaded reforça esse estado.
   showCaptcha() alterna as classes.
   Zero ambiguidade. Zero conflito. Funciona em todos os browsers.

   NOTA: O JS também verifica o computed style (getComputedStyle)
   antes de renderizar o widget, garantindo que o container
   está genuinamente visível antes de chamar grecaptcha.render().
   ========================================== */
#captchaContainer {
    /*
        [FIX-CSS-12] SEM display aqui.
        display é controlado EXCLUSIVAMENTE pelas classes abaixo.
        Sem conflito de especificidade com nenhum seletor.
    */
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 14px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.captcha-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--error-red);
    letter-spacing: 0.3px;
    pointer-events: none; /* [1] label puramente informativo */
}

.g-recaptcha {
    transform-origin: left top;
    max-width: 100%;
    overflow: hidden;
}

/* Iframe interno do reCAPTCHA — garante que não vaza do container */
.g-recaptcha iframe {
    max-width: 100%;
}

/*
    CONTROLE EXCLUSIVO DE VISIBILIDADE DO CAPTCHA — v2.5.

    .captcha-hidden: oculta com display:none.
    .captcha-visible: exibe com display:flex e animação captchaReveal.
    animation-fill-mode: forwards — CRÍTICO para manter opacity:1
    após o fim da animação.

    Sem conflito de especificidade porque nenhum seletor de ID
    define display nesta versão.
*/
.captcha-hidden  { display: none; }
.captcha-visible { display: flex; animation: captchaReveal 0.35s ease forwards; }

.captcha-error   { outline: 2px solid var(--error-red); border-radius: 12px; }

/* ==========================================
   RESPONSIVIDADE
   ========================================== */
@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
        width: 95%;
    }

    .financial-side {
        display: none;
    }

    .form-side {
        padding: 60px 40px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .login-container {
        width: 100%;
        border-radius: 0;
        min-height: 100vh;
        margin: 0;
    }

    .form-side {
        padding: 40px 24px;
    }

    .form-wrapper {
        max-width: 100%;
    }

    .form-title {
        font-size: 32px;
    }

    .social-login {
        grid-template-columns: 1fr;
    }

    .code-inputs {
        gap: 8px;
    }

    .code-input {
        width: 48px;
        height: 58px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .form-side {
        padding: 30px 18px;
    }

    .form-title {
        font-size: 28px;
    }

    .form-input {
        padding: 16px 20px 16px 52px;
        font-size: 15px;
    }

    .btn-submit {
        padding: 16px;
    }

    .logo-text {
        font-size: 40px;
    }

    .stats-grid {
        gap: 15px;
    }

    .stat-item {
        padding: 16px;
    }

    .g-recaptcha {
        transform: scale(0.82);
        transform-origin: left top;
    }
}

/* ==========================================
   REDUÇÃO DE MOVIMENTO
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .gradient-orb,
    .financial-visual,
    .btn-submit {
        will-change: auto;
    }
}

/* [FIX-JS-CODE-1] Substitui buttons.verifyCode.style.transform inline */
.btn-pulse {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* [FIX-JS-CB-1] Substitui custom.style.transform inline no checkbox */
.checkbox-custom-bounce {
    transform: scale(1.15);
    transition: transform 0.2s ease;
}