/* ==========================================================================
   LOGIN PAGE - DARK NEON THEME (CORREÇÃO FINAL)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --l-bg: #151521;
    --l-card: #1E1E2D;
    --l-border: 1px solid rgba(255, 255, 255, 0.08);
    --l-text-main: #ffffff;
    --l-text-sec: #9ca3af;
    --l-primary: #3b82f6;
    --l-success: #10b981;
    --l-neon-glow: rgba(59, 130, 246, 0.5);
    --grad-btn: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    height: 100vh;
    overflow: hidden;
    background-color: var(--l-bg);
    color: var(--l-text-main);
    display: flex;
    align-items: center; /* Centraliza verticalmente todo o conteúdo */
    justify-content: center;
}

/* --- Carrossel de Fundo --- */
.carousel-container {
    position: absolute;
    top: 0; left: 0;
    width: 60%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 10s linear;
    background-size: cover;
    background-position: center;
    transform: scale(1);
}
.carousel-slide.active {
    opacity: 1;
    transform: scale(1.05);
}

.carousel-container::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(21, 21, 33, 0.85), rgba(21, 21, 33, 1));
    z-index: 1;
}

/* --- Conteúdo Informativo (Esquerda) --- */
.info-section {
    position: absolute; /* Mudança: Absolute para garantir posição */
    left: 0;
    top: 0;
    width: 60%;
    height: 100vh; /* Garante altura total */
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza Verticalmente */
    padding: 0 80px; /* Padding horizontal maior */
    pointer-events: none;
    box-sizing: border-box; /* Garante que padding não estoure largura */
}

.info-content {
    max-width: 650px;
    pointer-events: all;
    animation: slideInLeft 0.8s ease-out forwards;
    /* Ajuste visual se parecer muito baixo */
    margin-top: -50px; 
}

.info-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* A sombra precisa ser aplicada no filtro pois o texto é gradiente */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}
.info-content h1 span { color: var(--l-primary); }

.info-content p.subtitle {
    font-size: 1.2rem;
    color: #e2e8f0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6); /* Sombra para destacar do fundo */
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    opacity: 0;
    animation: slideInUp 0.6s ease-out forwards;
}
.benefit-item:nth-child(1) { animation-delay: 0.2s; }
.benefit-item:nth-child(2) { animation-delay: 0.4s; }
.benefit-item:nth-child(3) { animation-delay: 0.6s; }

.benefit-icon {
    width: 50px; height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--l-primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
    flex-shrink: 0;
}

.benefit-text h3 { margin: 0 0 5px 0; font-size: 1.1rem; color: white; }
.benefit-text p { margin: 0; font-size: 0.95rem; color: #cbd5e1; text-shadow: 0 1px 3px rgba(0,0,0,0.6);}


/* --- Seção de Login (Direita) --- */
.login-section {
    position: absolute;
    right: 0;
    top: 0;
    width: 40%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--l-bg);
    z-index: 10;
}

.login-card {
    background: var(--l-card);
    border-radius: 24px;
    padding: 50px 40px;
    width: 100%;
    max-width: 420px; /* Largura máxima controlada */
    border: var(--l-border);
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
    position: relative;
    overflow: visible; /* Permite sombras externas */
    animation: slideInRight 0.8s ease-out forwards;
    
    /* Centraliza o card verticalmente se necessário */
    display: flex;
    flex-direction: column;
}

/* Linha Neon */
.login-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--l-primary), #8b5cf6);
    box-shadow: 0 0 15px var(--l-neon-glow);
}

.logo-area {
    text-align: center;
    margin-bottom: 25px;
}

/* CORREÇÃO LOGO PEQUENA */
.logo-icon { 
    height: auto; 
    width: auto;
    max-width: 320px; /* Aumentado significativamente */
    max-height: 100px;
    filter: drop-shadow(0 0 5px var(--l-neon-glow)); 
    display: block;
    margin: 0 auto;
}

.login-card h2 {
    text-align: center;
    font-size: 1.6rem;
    margin: 0 0 10px 0;
}
.login-card p.card-subtitle {
    text-align: center;
    color: var(--l-text-sec);
    margin: 0 0 30px 0;
}

/* --- Inputs (CORREÇÃO DE VAZAMENTO) --- */
.input-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%; /* Garante largura do pai */
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--l-text-sec);
    transition: 0.3s;
    z-index: 5;
}

.neon-input {
    width: 100%;
    background: #12121a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 14px 14px 14px 45px; /* Padding interno */
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    font-family: 'Outfit', sans-serif;
    height: 52px;
    box-sizing: border-box; /* CORREÇÃO CRÍTICA: Impede overflow */
}

.neon-input:focus {
    border-color: var(--l-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.neon-input:focus + .input-icon { color: var(--l-primary); }

/* Botão Login */
.btn-login {
    width: 100%;
    background: var(--grad-btn);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    display: flex; align-items: center; justify-content: center; gap: 10px;
    box-sizing: border-box; /* Garante tamanho correto */
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    filter: brightness(1.1);
}

.btn-login.loading { pointer-events: none; font-size: 0; }
.btn-login.loading::after {
    content: ''; width: 24px; height: 24px; border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite;
    position: absolute;
}

.btn-login.success {
    background: var(--l-success);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    font-size: 0;
}
.btn-login.success i.success-icon {
    display: block; font-size: 1.5rem; animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Links */
.forgot-password {
    display: block; text-align: center; margin-top: 20px;
    font-size: 0.9rem; color: var(--l-text-sec); text-decoration: none; transition: 0.2s;
}
.forgot-password:hover { color: var(--l-primary); }

.register-link {
    text-align: center; margin-top: 30px;
    font-size: 0.95rem; color: var(--l-text-sec);
}
.register-link a { color: var(--l-primary); text-decoration: none; font-weight: 600; }
.register-link a:hover { text-decoration: underline; }

/* Animações */
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scaleIn { from { transform: scale(0); } to { transform: scale(1); } }

/* --- Responsividade --- */
@media (max-width: 1024px) {
    .info-content h1 { font-size: 2.5rem; }
    .info-section { padding: 0 40px; }
}

@media (max-width: 768px) {
    body { flex-direction: column; height: auto; min-height: 100vh; }
    
    .carousel-container, .info-section { display: none; } /* Esconde lado esquerdo no mobile */
    
    .login-section {
        position: relative;
        width: 100%;
        height: 100vh; /* Tela cheia no mobile */
        padding: 20px;
        background: var(--l-bg);
    }
    
    .login-card {
        max-width: 100%;
        padding: 30px 20px;
        box-shadow: none; /* Remove sombra pesada no mobile */
        border: none; /* Remove borda para parecer nativo */
        background: transparent;
    }
}