/* ==========================================
   TELA DE LOGIN (GRID EDITORIAL / PRIVATE BANKING)
========================================== */


.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 480px; /* Painel fixo na direita, resto flexível */
    min-height: 100vh;
    background-color: var(--color-secondary);
    overflow: hidden;
}

/* --- LADO ESQUERDO: EDITORIAL --- */
.login-editorial {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 10%;
   background: radial-gradient(circle at top left, rgba(191, 0, 255, 0.3) 0%, var(--color-secondary) 80%);
    background-size: 200% 200%;
    animation: gradientPan 15s ease infinite alternate; /* Efeito da luz passeando */
    overflow: hidden;
}


.editorial-glow {
   position: absolute;
    width: 500px;
    height: 500px;
    background: var(--color-primary);
    border-radius: 50%;
    filter: blur(120px); /* Blur menor para a luz ficar mais concentrada */
    opacity: 0.3;
    top: -50px;
    left: -50px;
    z-index: 0;
    pointer-events: none;
    animation: glowPulse 6s infinite alternate ease-in-out;
}

.editorial-glow.glow-2 {
    top: auto;
    bottom: -100px;
    right: -100px;
    left: auto;
    width: 400px;
    height: 400px;
    animation: glowPulseReverse 8s infinite alternate ease-in-out;
}


.editorial-content {
    position: relative;
    z-index: 1;
}

.editorial-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.editorial-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--color-text);
    margin-bottom: 20px;
}

.editorial-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 440px;
    line-height: 1.6;
}




/* ==========================================
   PAINEL DIREITO E CAIXA DE LOGIN
========================================== */

/* O painel que segura tudo */
.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza a caixa verticalmente */
    align-items: center;     /* Centraliza a caixa horizontalmente */
    background-color: var(--color-blak);
    padding: 40px;
    position: relative;
    /* Mantenha o box-shadow e o ::before aqui se estiver usando o layout de tela dividida */
}

/* A caixa centralizada */
.login-box {
    width: 100%;
    max-width: 380px; 
    display: flex;
    flex-direction: column; /* Força tudo a empilhar certinho */
    text-align: left; /* Garante que as labels fiquem alinhadas à esquerda */
    animation: modalFadeIn 0.6s ease forwards;
}

/* O Header dentro da caixa (Ícone e Título) */
.login-header {
    text-align: center; /* Volta o texto do cabeçalho para o centro */
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    margin-top: 16px;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
}

/* ==========================================
   LABELS E INPUTS (Estrutura Solta)
========================================== */

/* Como a label está solta na login-box, estilizamos direto nela */
.login-box label {
    display: block;
    font-weight: var(--font-weight-bold);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px; /* Respiro entre a label e o input */
    letter-spacing: 0.5px;
}

/* O grupo do input que agora envolve só o input */
.input-group {
    width: 100%;
}

.input-group input {
    width: 100%; /* Preenche a caixa inteira */
    padding: 14px 16px;
    background: var(--color-input-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--color-primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(191, 0, 255, 0.15);
}

.btn-login {
    width: 100%;
    height: 54px;
    font-size: 16px;
    letter-spacing: 0.5px;
}


/* --- RESPONSIVIDADE SÊNIOR (MOBILE) --- */
@media (max-width: 900px) {
    .login-wrapper {
        grid-template-columns: 1fr; /* Volta para 1 coluna no celular */
    }

    .login-editorial {
        display: none; /* Esconde a arte no mobile para ir direto ao ponto */
    }

    .login-panel {
        box-shadow: none;
    }

    .login-panel::before {
        display: none;
    }
}

/* ==========================================
   ANIMAÇÕES NATIVAS (ALTA PERFORMANCE)
========================================== */
@keyframes gradientPan {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

@keyframes glowPulse {
    0% { 
        transform: scale(0.8) translate(0, 0); 
        opacity: 0.3; 
    }
    100% { 
        /* Agora ele anda 150px e a opacidade vai a 60% */
        transform: scale(1.5) translate(150px, 100px); 
        opacity: 0.6; 
    }
}

@keyframes glowPulseReverse {
    0% { 
        transform: scale(0.9) translate(0, 0); 
        opacity: 0.2; 
    }
    100% { 
        /* Movimento no sentido contrário */
        transform: scale(1.4) translate(-120px, -80px); 
        opacity: 0.5; 
    }
}