        :root {
            /* Paleta AxisEduc */
            --cor-primaria: #0f172a;
            --cor-secundaria: #2563eb;
            --cor-accent: #06b6d4;
            
            /* Modo Claro */
            --form-bg: #ffffff;
            --form-text: #1e293b;
            --form-text-muted: #64748b;
            --input-bg: #ffffff;
            --input-border: #e2e8f0;
            --input-text: #1e293b;
            --footer-border: #e2e8f0;
        }
        
        /* Modo Escuro */
        [data-bs-theme="dark"] {
            --form-bg: #1e293b;
            --form-text: #f1f5f9;
            --form-text-muted: #94a3b8;
            --input-bg: #334155;
            --input-border: #475569;
            --input-text: #f1f5f9;
            --footer-border: #475569;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            min-height: 100vh;
            background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
        }
        
        [data-bs-theme="dark"] body {
            background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #020617 100%);
        }
        
        .login-container {
            min-height: 100vh;
            display: flex;
        }
        
        /* Painel Esquerdo - Branding */
        .brand-panel {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 3rem;
            color: white;
            position: relative;
            overflow: hidden;
        }
        
        /* ========================================
           EFEITO DE PARTÍCULAS FLUTUANTES
           Paleta azul - discreto e elegante
           ======================================== */
        .particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            pointer-events: none;
            z-index: 0;
        }
        
        .particles::before,
        .particles::after,
        .particles .layer-1,
        .particles .layer-2 {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 3em;
            height: 3em;
            font-size: 52px;
            content: '.';
            color: transparent;
            mix-blend-mode: screen;
        }
        
        /* Camada 1 - Azul escuro */
        .particles::before {
            text-shadow: 
                0.8em 1.2em 8px rgba(30, 58, 95, 0.4),
                -1.5em 0.5em 8px rgba(30, 58, 95, 0.3),
                2.1em -0.8em 8px rgba(30, 58, 95, 0.35),
                -0.3em -1.8em 8px rgba(30, 58, 95, 0.25),
                1.7em 2.0em 8px rgba(30, 58, 95, 0.3),
                -2.2em 1.5em 8px rgba(30, 58, 95, 0.4),
                0.5em -2.5em 8px rgba(30, 58, 95, 0.25),
                2.5em 0.3em 8px rgba(30, 58, 95, 0.35),
                -1.0em 2.2em 8px rgba(30, 58, 95, 0.3),
                1.2em -1.5em 8px rgba(30, 58, 95, 0.4);
            animation: particleMove1 44s -27s infinite ease-in-out alternate;
        }
        
        /* Camada 2 - Azul médio */
        .particles::after {
            text-shadow: 
                1.5em -0.5em 8px rgba(41, 105, 149, 0.35),
                -0.8em 1.8em 8px rgba(41, 105, 149, 0.25),
                2.0em 1.0em 8px rgba(41, 105, 149, 0.3),
                -1.2em -1.5em 8px rgba(41, 105, 149, 0.4),
                0.3em 2.3em 8px rgba(41, 105, 149, 0.25),
                -2.5em 0.2em 8px rgba(41, 105, 149, 0.35),
                1.8em -1.8em 8px rgba(41, 105, 149, 0.3),
                -0.5em -0.3em 8px rgba(41, 105, 149, 0.4),
                2.2em 2.5em 8px rgba(41, 105, 149, 0.25),
                -1.5em 1.0em 8px rgba(41, 105, 149, 0.35);
            animation: particleMove2 43s -32s infinite ease-in-out alternate;
        }
        
        /* Camada 3 - Azul claro */
        .particles .layer-1 {
            text-shadow: 
                -1.0em 0.8em 8px rgba(37, 99, 235, 0.25),
                1.8em -1.2em 8px rgba(37, 99, 235, 0.2),
                0.5em 2.0em 8px rgba(37, 99, 235, 0.3),
                -2.3em -0.8em 8px rgba(37, 99, 235, 0.25),
                1.2em 1.5em 8px rgba(37, 99, 235, 0.2),
                -0.5em -2.3em 8px rgba(37, 99, 235, 0.35),
                2.5em 0.5em 8px rgba(37, 99, 235, 0.2),
                -1.8em 2.0em 8px rgba(37, 99, 235, 0.25),
                0.2em -1.0em 8px rgba(37, 99, 235, 0.3),
                -2.0em 0.2em 8px rgba(37, 99, 235, 0.2);
            animation: particleMove3 42s -23s infinite ease-in-out alternate;
        }
        
        /* Camada 4 - Azul bem sutil */
        .particles .layer-2 {
            text-shadow: 
                1.2em 0.5em 8px rgba(59, 130, 246, 0.15),
                -0.8em -1.5em 8px rgba(59, 130, 246, 0.1),
                2.5em 1.8em 8px rgba(59, 130, 246, 0.12),
                -1.5em 0.8em 8px rgba(59, 130, 246, 0.18),
                0.3em -2.0em 8px rgba(59, 130, 246, 0.1),
                -2.0em 2.2em 8px rgba(59, 130, 246, 0.15),
                1.8em -0.5em 8px rgba(59, 130, 246, 0.12),
                -0.5em 1.5em 8px rgba(59, 130, 246, 0.1),
                2.2em -1.8em 8px rgba(59, 130, 246, 0.18),
                -1.2em -0.3em 8px rgba(59, 130, 246, 0.12);
            animation: particleMove4 41s -19s infinite ease-in-out alternate;
        }
        
        @keyframes particleMove1 {
            from { transform: rotate(0deg) scale(12) translateX(-20px); }
            to { transform: rotate(360deg) scale(18) translateX(20px); }
        }
        
        @keyframes particleMove2 {
            from { transform: rotate(0deg) scale(14) translateX(15px); }
            to { transform: rotate(-360deg) scale(16) translateX(-15px); }
        }
        
        @keyframes particleMove3 {
            from { transform: rotate(0deg) scale(10) translateY(-20px); }
            to { transform: rotate(360deg) scale(14) translateY(20px); }
        }
        
        @keyframes particleMove4 {
            from { transform: rotate(0deg) scale(16) translateX(-10px) translateY(10px); }
            to { transform: rotate(-360deg) scale(20) translateX(10px) translateY(-10px); }
        }
        /* ======================================== */
        
        .brand-panel::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
            animation: pulse 15s infinite ease-in-out;
        }
        
        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 0.3; }
            50% { transform: scale(1.1); opacity: 0.5; }
        }
        
        .brand-content {
            position: relative;
            z-index: 1;
            text-align: center;
            max-width: 480px;
        }
        
        .logo-container {
            margin-bottom: 2rem;
        }
        
        .logo-svg {
            width: 180px;
            height: auto;
            filter: drop-shadow(0 8px 32px rgba(37, 99, 235, 0.3));
            transition: transform 0.3s ease;
        }
        
        .logo-svg:hover {
            transform: scale(1.05);
        }
        
        .logo-img {
            max-width: 200px;
            max-height: 180px;
            filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.3));
            transition: transform 0.3s ease;
        }
        
        .logo-img:hover {
            transform: scale(1.05);
        }
        
        .brand-title {
            font-size: 3rem;
            font-weight: 300;
            margin-bottom: 0.5rem;
            text-shadow: 0 4px 16px rgba(0,0,0,0.3);
            letter-spacing: 1px;
        }
        
        .brand-title strong {
            font-weight: 700;
        }
        
        .brand-subtitle {
            font-size: 1.1rem;
            opacity: 0.85;
            margin-bottom: 2.5rem;
            line-height: 1.7;
        }
        
        .brand-features {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            justify-content: center;
        }
        
        .feature-badge {
            background: rgba(255,255,255,0.1);
            padding: 0.5rem 1.25rem;
            border-radius: 50px;
            font-size: 0.85rem;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.15);
            transition: all 0.3s ease;
        }
        
        .feature-badge:hover {
            background: rgba(255,255,255,0.15);
            border-color: rgba(255,255,255,0.25);
            transform: translateY(-2px);
        }
        
        /* Painel Direito - Formulário */
        .form-panel {
            width: 500px;
            background: var(--form-bg);
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 3rem;
            box-shadow: -10px 0 60px rgba(0,0,0,0.3);
            transition: background-color 0.3s ease;
            position: relative;
        }
        
        /* Botão Modo Escuro */
        .theme-toggle {
            position: absolute;
            top: 1.25rem;
            right: 1.25rem;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 2px solid var(--input-border);
            background: var(--input-bg);
            color: var(--form-text-muted);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            transition: all 0.3s ease;
            z-index: 10;
        }
        
        .theme-toggle:hover {
            border-color: var(--cor-secundaria);
            color: var(--cor-secundaria);
            transform: rotate(20deg);
        }
        
        .theme-toggle .fa-moon { display: block; }
        .theme-toggle .fa-sun { display: none; }
        
        [data-bs-theme="dark"] .theme-toggle .fa-moon { display: none; }
        [data-bs-theme="dark"] .theme-toggle .fa-sun { display: block; color: #fbbf24; }
        
        .form-header {
            text-align: center;
            margin-bottom: 2rem;
        }
        
        .form-header h2 {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--form-text);
            margin-bottom: 0.5rem;
        }
        
        .form-header p {
            color: var(--form-text-muted);
            font-size: 0.95rem;
        }
        
        /* Form Floating Labels */
        .input-group-custom {
            position: relative;
        }
        
        .input-group-custom .form-control {
            height: 56px;
            padding: 1rem 1rem 1rem 3rem;
            background: var(--input-bg);
            border: 2px solid var(--input-border);
            border-radius: 12px;
            color: var(--input-text);
            font-size: 1rem;
            transition: all 0.3s ease;
        }
        
        .input-group-custom .form-control::placeholder {
            color: var(--form-text-muted);
        }
        
        .input-group-custom .form-control:focus {
            border-color: var(--cor-secundaria);
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
            background: var(--input-bg);
        }
        
        .input-group-custom .input-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--form-text-muted);
            font-size: 1.1rem;
            z-index: 1;
        }
        
        .password-toggle {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--form-text-muted);
            cursor: pointer;
            padding: 0.5rem;
            font-size: 1rem;
            transition: color 0.2s ease;
            z-index: 2;
        }
        
        .password-toggle:hover {
            color: var(--cor-secundaria);
        }
        
        /* Checkbox */
        .form-check-input {
            width: 1.125rem;
            height: 1.125rem;
            border: 2px solid var(--input-border);
            background-color: var(--input-bg);
        }
        
        .form-check-input:checked {
            background-color: var(--cor-secundaria);
            border-color: var(--cor-secundaria);
        }
        
        .form-check-label {
            color: var(--form-text-muted);
            font-size: 0.9rem;
        }
        
        /* Botão Login */
        .btn-login {
            width: 100%;
            height: 52px;
            background: linear-gradient(135deg, var(--cor-secundaria), #1d4ed8);
            border: none;
            border-radius: 12px;
            color: white;
            font-size: 1rem;
            font-weight: 600;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .btn-login::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s ease;
        }
        
        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
        }
        
        .btn-login:hover::before {
            left: 100%;
        }
        
        .btn-login:active {
            transform: translateY(0);
        }
        
        /* Link esqueci senha */
        .forgot-link {
            color: var(--cor-secundaria);
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.2s ease;
        }
        
        .forgot-link:hover {
            color: #1d4ed8;
            text-decoration: underline;
        }
        
        /* Footer */
        .footer-info {
            margin-top: 2.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--footer-border);
            text-align: center;
        }
        
        .footer-info .municipio {
            color: var(--form-text);
            font-weight: 600;
            font-size: 0.95rem;
            margin-bottom: 0.25rem;
        }
        
        .footer-info small {
            color: var(--form-text-muted);
        }
        
        /* Alerts */
        .alert {
            border: none;
            border-radius: 12px;
            padding: 1rem 1.25rem;
            margin-bottom: 1.5rem;
            font-size: 0.9rem;
        }
        
        .alert-danger {
            background: #fef2f2;
            color: #dc2626;
        }
        
        .alert-success {
            background: #f0fdf4;
            color: #16a34a;
        }
        
        .alert-info {
            background: #eff6ff;
            color: #2563eb;
        }
        
        [data-bs-theme="dark"] .alert-danger {
            background: rgba(220, 38, 38, 0.15);
            color: #fca5a5;
        }
        
        [data-bs-theme="dark"] .alert-success {
            background: rgba(22, 163, 74, 0.15);
            color: #86efac;
        }
        
        [data-bs-theme="dark"] .alert-info {
            background: rgba(37, 99, 235, 0.15);
            color: #93c5fd;
        }
        
        /* Animações */
        .fade-in {
            animation: fadeIn 0.6s ease-out;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Responsivo */
        @media (max-width: 991.98px) {
            .brand-panel {
                display: none;
            }
            
            .form-panel {
                width: 100%;
                max-width: 100%;
            }
        }
        
        @media (max-width: 575.98px) {
            .form-panel {
                padding: 2rem 1.5rem;
            }
            
            .brand-title {
                font-size: 2rem;
            }
        }

/* Município em destaque no topo do formulário (login do tenant) */
.municipio-destaque {
    color: var(--cor-secundaria);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.4rem !important;
}
/* Dica de detecção automática (login global) */
.deteccao-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--cor-secundaria);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.25rem;
}
[data-bs-theme="dark"] .deteccao-hint {
    background: rgba(37, 99, 235, 0.18);
    color: #93c5fd;
}
