/* --- VARS LOCAIS --- */
.auth-wrapper {
    --bg-void: #020617;
    --bg-glass-strong: rgba(30, 41, 59, 0.7);
    --border: rgba(255,255,255,0.08);
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.5);
    --cyan: #06b6d4;
    --danger: #ef4444;
    --danger-soft: #f87171;
    --success: #10b981;
    --text: #f8fafc;
    --muted: #94a3b8;
}

/* RESET ESPECÍFICO DA PÁGINA */
body.page-template-page-login {
    margin: 0; 
    padding: 0;
    
    background-color: #020617; 
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;

    display: flex;
    flex-direction: column; 
    min-height: 100vh;
    
    /* Espaço para o Header Fixo */
    padding-top: 90px; 
}

body.page-template-page-login > footer {
    margin-top: auto;
}

/* --- LAYOUT SPLIT (CENTRALIZADO) --- */
.auth-wrapper { 
    display: flex; 
    width: 90%; 
    max-width: 1100px; 
    
    /* Centraliza no meio da tela */
    margin: auto; 
    
    /* Altura Mínima do Cartão Geral */
    min-height: 650px; 
    
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    background-color: var(--bg-void);
    
    margin-bottom: 40px; 
}

/* Responsividade Mobile */
@media (max-width: 1150px) {
    .auth-wrapper {
        max-width: 100%;
        width: 100%;
        margin: 0; 
        margin-top: 20px;
        border: none;
        border-radius: 0;
        min-height: auto;
        flex: 1;
    }
    
    body.page-template-page-login > footer {
        margin-top: 0;
    }
}

.auth-visual {
    flex: 1; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    padding: 60px; 
    background: radial-gradient(circle at top left, #1e1b4b, #020617); 
    border-right: 1px solid var(--border);
    overflow: hidden;
}

.auth-visual::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px; pointer-events: none; z-index: 0;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.brand-content { position: relative; z-index: 2; max-width: 500px; }
.hero-title { font-size: 3rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: 1.1rem; color: var(--muted); line-height: 1.6; margin-bottom: 40px; }

/* Features */
.features-grid { display: grid; gap: 20px; }
.feature-item { display: flex; align-items: center; gap: 15px; background: rgba(255,255,255,0.03); padding: 15px 20px; border-radius: 12px; border: 1px solid var(--border); backdrop-filter: blur(5px); transition: border-color 0.3s ease; }
.feature-item:hover { border-color: rgba(255,255,255,0.15); }
.f-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(79, 70, 229, 0.15); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.f-text h4 { margin: 0 0 4px 0; font-size: 0.95rem; }
.f-text p { margin: 0; font-size: 0.8rem; color: var(--muted); }

/* Lado Direito (Formulário) */
.auth-form-side {
    flex: 0 0 500px; 
    background: rgba(15, 23, 42, 0.4); 
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 40px; position: relative;
}

/* --- CORREÇÃO DO PULO DE TAMANHO --- */
.form-container { 
    width: 100%; 
    max-width: 380px;
    
    /* Define uma altura mínima baseada no formulário maior (Cadastro) */
    min-height: 600px; 
    
    /* Garante que o Login (menor) fique centralizado nesse espaço */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tabs */
.auth-tabs { display: flex; background: rgba(0,0,0,0.2); padding: 4px; border-radius: 12px; margin-bottom: 30px; border: 1px solid var(--border); }
.tab-btn { flex: 1; background: transparent; border: none; padding: 10px; border-radius: 8px; color: var(--muted); font-weight: 600; cursor: pointer; transition: 0.3s; }
.tab-btn.active { background: var(--bg-glass-strong); color: white; border: 1px solid var(--border); }

/* Inputs */
.input-group { margin-bottom: 20px; position: relative; }
.input-group label { display: block; font-size: 0.85rem; color: var(--text); margin-bottom: 8px; font-weight: 500; }
.input-wrapper { position: relative; }

.input-wrapper i { 
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%); 
    color: var(--muted); transition: 0.3s; pointer-events: none;
}

.metria-input {
    width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    padding: 12px 45px 12px 15px; 
    border-radius: 10px; color: white; font-size: 0.95rem; transition: 0.3s;
}
.metria-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15); background: rgba(255,255,255,0.05); }
.metria-input:focus + i { color: var(--primary); }

/* File Upload */
.file-upload-wrapper {
    position: relative;
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    background: rgba(255,255,255,0.02);
}
.file-upload-wrapper:hover { border-color: var(--primary); background: rgba(79, 70, 229, 0.05); }
.file-upload-wrapper input[type="file"] {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}
.file-upload-label { color: var(--muted); font-size: 0.85rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.file-upload-label i { position: static; transform: none; color: var(--cyan); }

/* Botões */
.btn-auth {
    width: 100%; background: linear-gradient(135deg, var(--primary), #4338ca); color: white; border: none; padding: 14px;
    border-radius: 10px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: 0.3s; margin-top: 10px; position: relative; overflow: hidden;
}
.btn-auth:hover:not(:disabled) { box-shadow: 0 0 20px var(--primary-glow); transform: translateY(-1px); }
.btn-auth:disabled { opacity: 0.7; cursor: not-allowed; filter: grayscale(1); }

/* Aviso de Verificação */
.verification-warning {
    background: rgba(239, 68, 68, 0.08); 
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 24px 20px; 
    border-radius: 12px; 
    margin-bottom: 20px; 
    text-align: center;
}
.vw-icon { font-size: 2rem; color: var(--danger); margin-bottom: 12px; }
.vw-title { color: white; font-weight: 700; margin-bottom: 8px; font-size: 1.05rem; }
.vw-text { color: var(--muted); font-size: 0.9rem; margin-bottom: 15px; line-height: 1.6; }
.vw-spam-alert {
    font-size: 0.85rem; color: var(--danger-soft); 
    margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.vw-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 15px; }
.btn-check {
    background: #020617; border: 1px solid var(--border); color: white;
    padding: 8px 16px; border-radius: 6px; font-size: 0.85rem; cursor: pointer; transition: 0.2s;
}
.btn-check:hover { border-color: var(--success); color: var(--success); }

/* Social */
.social-buttons { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.btn-social {
    width: 100%; padding: 12px; border-radius: 10px; font-size: 1rem;
    cursor: pointer; transition: 0.2s; border: 1px solid var(--border);
    color: white; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}
.btn-social:hover { background: rgba(255, 255, 255, 0.1); border-color: #4285F4; }
.google-icon { background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Google_%22G%22_logo.svg/48px-Google_%22G%22_logo.svg.png') center/contain no-repeat; width: 18px; height: 18px; margin-right: 12px; }

.social-login-separator { text-align: center; margin: 20px 0; font-size: 0.85rem; color: var(--muted); position: relative; }
.social-login-separator::before, .social-login-separator::after { content: ""; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.social-login-separator::before { left: 0; }
.social-login-separator::after { right: 0; }

/* User Panel */
.user-card { text-align: center; background: var(--bg-glass-strong); padding: 30px; border-radius: 20px; border: 1px solid var(--border); }
.avatar-circle {
    width: 90px; height: 90px; background: linear-gradient(135deg, var(--cyan), var(--primary));
    border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700; color: white; box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    overflow: hidden; background-size: cover; background-position: center; border: 2px solid var(--border);
}

/* Toast */
.toast-container { position: fixed; top: 100px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: #1e293b; border: 1px solid var(--border); padding: 15px 20px; border-radius: 10px;
    display: flex; align-items: center; gap: 12px; min-width: 300px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateX(100%); transition: transform 0.3s;
}
.toast.show { transform: translateX(0); }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }

@media (max-width: 900px) {
    .auth-wrapper { flex-direction: column; min-height: auto; }
    .auth-visual { padding: 40px 20px; }
    .hero-title { font-size: 2rem; }
    .auth-form-side { flex: none; width: 100%; padding: 40px 20px; }
}
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from{opacity:0; transform:translateY(10px)} to{opacity:1; transform:translateY(0)} }