        :root {
            --n-bg: #F8FAFC; 
            --n-surface: #FFFFFF;
            --n-border: #E2E8F0;
            --n-text: #0F172A;
            --n-muted: #64748B;
            --n-accent: #0284C7;
            
            --n-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
            --n-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
        }

        html, body { height: 100%; margin: 0; padding: 0; }
        body { background-color: var(--n-surface); color: var(--n-text); font-family: 'Inter', sans-serif; font-size: 0.875rem; -webkit-font-smoothing: antialiased; }

        .text-n-text { color: var(--n-text) !important; }
        .text-n-muted { color: var(--n-muted) !important; }

        /* Layout Split Screen */
        .login-wrapper { display: flex; min-height: 100vh; }
        
        /* Lado do Formulário (Esquerda) */
        .form-side { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem; position: relative; background: var(--n-surface); }
        .form-container { width: 100%; max-width: 400px; }

        /* Lado da Marca (Direita) */
        .brand-side { flex: 1; display: none; background: #0F172A; position: relative; overflow: hidden; padding: 4rem; color: #fff; flex-direction: column; justify-content: center; }
        @media (min-width: 992px) { .brand-side { display: flex; } }
        
        /* Efeitos Visuais do lado da Marca */
        .brand-glow { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, rgba(15, 23, 42, 0) 70%); top: -100px; right: -100px; border-radius: 50%; }
        .brand-glow-2 { position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(15, 23, 42, 0) 70%); bottom: -50px; left: -50px; border-radius: 50%; }
        .brand-content { position: relative; z-index: 2; max-width: 520px; }
        .brand-quote { font-size: 2rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
        .brand-author { font-size: 1rem; color: #94A3B8; font-weight: 500; display: flex; align-items: center; gap: 0.75rem; }

        /* Elementos do Formulário */
        .logo-header { text-decoration: none; display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 800; color: var(--n-text); letter-spacing: -0.02em; margin-bottom: 3rem; }
        .logo-icon { width: 40px; height: 40px; border-radius: 0.75rem; background: transparent; border: 2px solid var(--n-text); color: var(--n-text); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }

        h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.5rem; color: var(--n-text); }
        .subtitle { font-size: 0.9375rem; color: var(--n-muted); margin-bottom: 2rem; }

        .form-label.n-label { font-size: 0.8125rem; font-weight: 600; color: var(--n-text); margin-bottom: 0.375rem; }
        .n-input { width: 100%; border: 1px solid var(--n-border); border-radius: 0.5rem; padding: 0.625rem 0.875rem; font-size: 0.9375rem; font-weight: 400; transition: 0.2s; background: #fff; color: var(--n-text); }
        .n-input:focus { outline: none; border-color: var(--n-accent); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1); }
        .n-input::placeholder { color: #94A3B8; }

        /* Input de Senha Seguro */
        .secure-input-group { display: flex; align-items: stretch; position: relative; }
        .secure-input-group .n-input { padding-right: 2.5rem; font-family: 'Inter', sans-serif; }
        .secure-btn { position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--n-muted); padding: 0.25rem 0.5rem; cursor: pointer; transition: 0.2s; border-radius: 0.25rem; display: flex; align-items: center; justify-content: center; font-size: 1.125rem;}
        .secure-btn:hover { color: var(--n-text); }

        /* Checkbox e Links */
        .form-check-input { width: 1.125rem; height: 1.125rem; margin-top: 0.125rem; border-color: var(--n-border); cursor: pointer; }
        .form-check-input:checked { background-color: var(--n-text); border-color: var(--n-text); }
        .form-check-label { font-size: 0.875rem; font-weight: 500; color: var(--n-text); cursor: pointer; }
        .forgot-link { font-size: 0.875rem; font-weight: 600; color: var(--n-accent); text-decoration: none; transition: 0.2s; }
        .forgot-link:hover { color: #0369A1; text-decoration: underline; }

        /* Botões */
        .btn-neural { width: 100%; background: var(--n-text); color: #fff; border: 0; padding: 0.75rem 1.25rem; border-radius: 0.5rem; font-size: 0.9375rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; transition: 0.2s; box-shadow: var(--n-shadow-sm); cursor: pointer; margin-top: 1rem; }
        .btn-neural:hover { background: #000; box-shadow: var(--n-shadow-md); transform: translateY(-1px); }

        /* Divisor SSO */
        .sso-divider { display: flex; align-items: center; text-align: center; margin: 1.5rem 0; color: var(--n-muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
        .sso-divider::before, .sso-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--n-border); }
        .sso-divider::before { margin-right: 1em; }
        .sso-divider::after { margin-left: 1em; }

        .btn-outline-neural { width: 100%; background: #fff; color: var(--n-text); border: 1px solid var(--n-border); padding: 0.625rem 1.25rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; transition: 0.2s; box-shadow: var(--n-shadow-sm); cursor: pointer; }
        .btn-outline-neural:hover { background: #F8FAFC; border-color: #CBD5E1; }
        
        /* Rodapé do Form */
        .form-footer { position: absolute; bottom: 2rem; font-size: 0.6875rem; color: var(--n-muted); text-align: center; width: 100%; max-width: 400px; line-height: 1.6; }

        /* =========================================================
           TOASTS / NOTIFICAÇÕES DE ERRO
           ========================================================= */
        .toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 0.75rem; pointer-events: none; }
        .n-toast { background: #fff; border: 1px solid var(--n-border); border-radius: 0.5rem; padding: 1rem; box-shadow: var(--n-shadow-md); display: flex; align-items: flex-start; gap: 0.75rem; min-width: 320px; transform: translateX(120%); transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); opacity: 0; pointer-events: auto; }
        .n-toast.show { transform: translateX(0); opacity: 1; }
        
        /* Variante de Erro */
        .n-toast.error { border-left: 4px solid #EF4444; }
        .n-toast.error .toast-icon { color: #EF4444; }
        
        .toast-icon { font-size: 1.25rem; margin-top: 2px; }
        .toast-content { flex: 1; }
        .toast-title { font-weight: 700; color: var(--n-text); font-size: 0.875rem; margin-bottom: 0.125rem; }
        .toast-message { font-size: 0.8125rem; color: var(--n-muted); line-height: 1.4; }

        /* ==========================================================================
   EXTENSÕES PARA 2FA
   ========================================================================== */
.user-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: #F1F5F9; border: 1px solid var(--n-border); padding: 0.375rem 0.75rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; color: var(--n-text); margin-bottom: 2rem; }

.code-container { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 1.5rem; }
.code-box { width: 3.5rem; height: 4rem; border: 1px solid var(--n-border); border-radius: 0.5rem; background: #fff; font-size: 1.5rem; font-weight: 700; text-align: center; color: var(--n-text); transition: 0.2s; caret-color: var(--n-accent); }
.code-box:focus { outline: none; border-color: var(--n-accent); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1); background: #F8FAFC; }

.back-link { position: absolute; top: 2rem; left: 2rem; font-size: 0.875rem; font-weight: 600; color: var(--n-muted); text-decoration: none; display: flex; align-items: center; gap: 0.375rem; transition: 0.2s; }
.back-link:hover { color: var(--n-text); }