@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Orbitron:wght@700;900&family=Poppins:wght@700;800;900&display=swap');

:root { 
    --nexus-cyan: #0D9488;
    --nexus-gold: #D97706;
    --bg-main: #F4F1EA;
    --text-main: #3F3C38;
    --text-muted: #78716C;
    --border-light: #D6D1C4;
}

body, html { margin: 0; padding: 0; height: 100%; font-family: 'Inter', sans-serif; overflow: hidden; background-color: var(--bg-main); }

.auth-wrapper { display: flex; width: 100%; height: 100vh; }

/* LADO ESQUERDO - ATUALIZADO PARA ESTILO MODERNO/FUTURISTA */
.auth-side-image { 
    flex: 1; 
    /* Imagem de Data Center / IA / Tecnologia Abstrata */
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072') center/cover; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden;
}

/* Gradiente mais moderno e profundo */
.auth-side-image::after { 
    content: ''; 
    position: absolute; 
    top:0; left:0; width:100%; height:100%; 
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.9), rgba(15, 23, 42, 0.7)); 
}

/* Grid tecnológico sutil ao fundo */
.tech-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
}

.overlay-content { position: relative; z-index: 2; color: white; text-align: center; }

.nexus-title-glow { 
    font-family: 'Orbitron', sans-serif; 
    font-size: 5.5rem; 
    font-weight: 900; 
    letter-spacing: 12px; 
    margin: 0; 
    text-shadow: 0 0 25px rgba(13, 148, 136, 0.8); 
    color: white;
}

.nexus-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.9;
    margin-top: 10px;
}

/* LADO DIREITO - FORMULÁRIO */
.auth-side-form { flex: 0 0 500px; background: white; display: flex; align-items: center; justify-content: center; padding: 40px; position: relative; border-left: 5px solid var(--nexus-gold); }
.form-container { width: 100%; max-width: 380px; }

/* MARCA - LOGO E DISTÂNCIA (ESTÁTICO NO TOPO GLOBAL) */
.auth-header-global {
    width: 100%;
    display: flex;
    justify-content: center;
}

.brand-wrapper {
    display: flex;
    justify-content: center; 
    margin-bottom: 15px !important; 
    width: 100%;
    transform: translateX(-25px) !important; /* Alinhamento óptico recalibrado com base no centro do botão */
}

.nexus-brand-img {
    max-width: 272px !important; 
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    image-rendering: -webkit-optimize-contrast;  
}

/* CONTEXTO DO SUBTÍTULO DE CADASTRO */
.auth-header-context {
    text-align: center;
    width: 100%;
}

.register-subtitle {
    color: #94a3b8; 
    font-family: 'Orbitron', sans-serif; 
    font-size: 0.65rem; 
    letter-spacing: 3px; 
    font-weight: 500; 
    text-transform: uppercase; 
    margin: 5px 0 25px 0; 
    width: 100%; 
    opacity: 0.8;
}

/* INPUTS */
.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; text-transform: uppercase; }
.input-nexus { width: 100%; padding: 14px; box-sizing: border-box; background: var(--bg-main); border: 1px solid var(--border-light); border-radius: 8px; font-size: 0.9rem; transition: 0.3s; }
.input-nexus:focus { border-color: var(--nexus-cyan); outline: none; background: white; box-shadow: 0 0 10px rgba(13, 148, 136, 0.1); }

/* UTILS */
.form-utils {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
}

.forgot-link {
    color: var(--nexus-cyan);
    text-decoration: none;
    font-weight: 700;
}

/* BOTÕES CARDINAIS */
.btn-primary { width: 100%; padding: 16px; background: var(--nexus-gold); color: white; border: none; border-radius: 8px; font-family: 'Poppins', sans-serif; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.btn-primary:hover { background: #B45309; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3); }

/* COR EXCLUSIVA PARA O FLUXO DE CADASTRO (CIANO) */
.btn-primary.btn-register-cyan {
    background: var(--nexus-cyan) !important;
}
.btn-primary.btn-register-cyan:hover {
    background: #0F766E !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3) !important;
}

/* DIVISORES E SOCIAL */
.divider { text-align: center; margin: 30px 0; position: relative; }
.divider::after { content: ''; position: absolute; top:50%; left:0; width: 100%; height: 1px; background: var(--border-light); }
.divider span { background: white; padding: 0 10px; position: relative; z-index: 2; font-size: 0.7rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }

.social-login-grid { display: flex; justify-content: center; gap: 15px; }
.social-icon { width: 45px; height: 45px; border-radius: 50%; border: 1px solid var(--border-light); background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: 0.3s; }
.social-icon:hover { transform: scale(1.1); border-color: var(--nexus-cyan); color: var(--nexus-cyan); }

/* FOOTER */
.auth-footer { text-align: center; margin-top: 25px; font-size: 0.85rem; color: var(--text-muted); }
.toggle-span { color: var(--nexus-cyan); font-weight: 800; cursor: pointer; text-decoration: underline; }

.hidden { display: none !important; }

/* --- TRANSIÇÃO SUAVE DE CONTEXTO (LOGIN -> CADASTRO) --- */
.auth-side-form {
    transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Nova classe injetada dinamicamente via JS na tela de inscrição */
.auth-side-form.register-mode {
    background-color: #EFECE3 !important; /* Tom suave que avisa o cérebro: "Mudamos de tela" */
}