 * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
        background: linear-gradient(135deg, #0a4d2e 0%, #1a7a4a 50%, #0d5c37 100%);
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        height: 100vh;
        margin: 0;
        padding: 20px;
        position: relative;
        overflow-x: hidden;
        overflow-y: auto;
    }

    /* Efeito de background animado */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(212, 250, 0, 0.05) 1px, transparent 1px);
        background-size: 50px 50px;
        animation: moveBackground 20s linear infinite;
        z-index: 0;
        pointer-events: none;
    }

    @keyframes moveBackground {
        0% { transform: translate(0, 0); }
        100% { transform: translate(50px, 50px); }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .container {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 50px 45px;
        border-radius: 24px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                    0 0 100px rgba(212, 250, 0, 0.1);
        text-align: center;
        max-width: 440px;
        width: 100%;
        position: relative;
        z-index: 1;
        animation: slideUp 0.6s ease-out;
        border: 1px solid rgba(212, 250, 0, 0.1);
    }

    .logo-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 32px;
        animation: fadeIn 0.8s ease-out 0.2s both;
    }

    .icon-wrapper {
        width: 90px;
        height: 90px;
        background: linear-gradient(135deg, #0a4d2e, #1a7a4a, #0d5c37);
        border-radius: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
        box-shadow: 0 10px 30px rgba(10, 77, 46, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    .icon-wrapper::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 30% 30%, rgba(212, 250, 0, 0.15), transparent 70%);
        pointer-events: none;
    }

    .icon-wrapper:hover {
        transform: scale(1.08) translateY(-2px);
        box-shadow: 0 15px 40px rgba(10, 77, 46, 0.5),
                    0 0 30px rgba(212, 250, 0, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .transformer-icon {
        width: 52px;
        height: 52px;
        filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
        animation: pulseGlow 3s ease-in-out infinite;
    }

    @keyframes pulseGlow {
        0%, 100% {
            filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
        }
        50% {
            filter: drop-shadow(0 3px 8px rgba(212, 250, 0, 0.4)) drop-shadow(0 0 12px rgba(212, 250, 0, 0.3));
        }
    }

    @keyframes electricPulse {
        0%, 100% { opacity: 0.6; }
        50% { opacity: 1; }
    }

    h2 {
        font-family: 'Inter', sans-serif;
        font-size: 2em;
        font-weight: 700;
        background: linear-gradient(135deg, #0a4d2e, #1a7a4a);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
        line-height: 1.2;
    }

    .subtitle {
        color: #666;
        font-size: 0.95em;
        font-weight: 500;
        margin-bottom: 32px;
        animation: fadeIn 0.8s ease-out 0.4s both;
    }

    .form-group {
        margin-bottom: 24px;
        text-align: left;
        animation: fadeIn 0.8s ease-out 0.6s both;
    }

    label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #2d3748;
        font-size: 0.9em;
        letter-spacing: 0.3px;
    }

    .input-wrapper {
        position: relative;
    }

    .input-icon {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        color: #718096;
        pointer-events: none;
        transition: color 0.3s ease;
    }

    input {
        width: 100%;
        padding: 14px 16px 14px 48px;
        border-radius: 12px;
        border: 2px solid #e2e8f0;
        font-size: 15px;
        font-family: 'Inter', sans-serif;
        transition: all 0.3s ease;
        background: #f7fafc;
    }

    input:focus {
        outline: none;
        border-color: #1a7a4a;
        background: white;
        box-shadow: 0 0 0 4px rgba(26, 122, 74, 0.1);
    }

    input:focus + .input-icon {
        color: #1a7a4a;
    }

    button {
        margin-top: 8px;
        width: 100%;
        padding: 15px 20px;
        background: linear-gradient(135deg, #0a4d2e 0%, #1a7a4a 100%);
        color: white;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        font-weight: 600;
        font-size: 16px;
        font-family: 'Inter', sans-serif;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(10, 77, 46, 0.3);
        letter-spacing: 0.5px;
        animation: fadeIn 0.8s ease-out 0.8s both;
    }

    button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(10, 77, 46, 0.4);
        background: linear-gradient(135deg, #0d5c37 0%, #1f9359 100%);
    }

    button:active {
        transform: translateY(0);
    }

    #mensagem-erro {
        color: #e53e3e;
        background: linear-gradient(135deg, rgba(229, 62, 62, 0.1), rgba(229, 62, 62, 0.05));
        padding: 14px 18px;
        border-radius: 12px;
        margin-bottom: 20px;
        display: none;
        font-size: 0.9em;
        font-weight: 500;
        border-left: 4px solid #e53e3e;
        animation: slideUp 0.4s ease-out;
    }

    /* Loading animation */
    .loading {
        pointer-events: none;
        position: relative;
        color: transparent;
    }

    .loading::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        top: 50%;
        left: 50%;
        margin-left: -10px;
        margin-top: -10px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top-color: white;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    /* Responsive */
    @media (max-width: 480px) {
        .container {
            padding: 40px 30px;
        }

        h2 {
            font-size: 1.6em;
        }

        .icon-wrapper {
            width: 70px;
            height: 70px;
        }

        .icon-wrapper::before {
            font-size: 35px;
        }
    }

    /* Acessibilidade - Modo escuro do sistema */
    @media (prefers-color-scheme: dark) {
        .container {
            background: rgba(30, 30, 30, 0.98);
        }

        h2 {
            background: linear-gradient(135deg, #d4fa00, #a8cc00);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .subtitle {
            color: #a0aec0;
        }

        label {
            color: #e2e8f0;
        }

        input {
            background: #2d3748;
            border-color: #4a5568;
            color: white;
        }

        input:focus {
            background: #374151;
            border-color: #d4fa00;
        }

        .dev-login-panel {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08)) !important;
            border: 1px solid rgba(167, 139, 250, 0.35) !important;
        }

        .dev-login-desc, .dev-login-hint {
            color: #cbd5e0 !important;
        }

        .dev-login-select {
            background: #2d3748 !important;
            border-color: #4a5568 !important;
            color: white !important;
        }
    }

    /* ==========================
       Modo Desenvolvedor (Local)
       ========================== */
    .dev-login-panel {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
        border: 1px solid rgba(167, 139, 250, 0.3);
        border-radius: 14px;
        padding: 12px 14px;
        margin-bottom: 20px;
        text-align: left;
        animation: fadeIn 0.5s ease-out 0.15s both;
    }

    .dev-login-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    .dev-login-badge {
        font-size: 0.78em;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: #4c1d95;
        background: rgba(196, 181, 253, 0.55);
        padding: 4px 10px;
        border-radius: 999px;
    }

    .dev-login-minimize {
        width: 28px;
        height: 24px;
        padding: 0;
        margin: 0;
        background: transparent;
        border: 1px solid rgba(139, 92, 246, 0.35);
        color: #5b21b6;
        border-radius: 6px;
        box-shadow: none;
        font-size: 14px;
        font-weight: 700;
        line-height: 1;
    }

    .dev-login-minimize:hover {
        background: rgba(139, 92, 246, 0.12);
        transform: none;
        box-shadow: none;
    }

    .dev-login-desc {
        font-size: 0.82em;
        line-height: 1.45;
        color: #4a5568;
        margin: 4px 0 10px 0;
    }

    .dev-login-hint {
        font-size: 0.75em;
        color: #6b7280;
        margin: 6px 0 0 0;
        font-style: italic;
    }

    .dev-login-select {
        width: 100%;
        padding: 12px 14px;
        border-radius: 10px;
        border: 2px solid #e2e8f0;
        font-size: 14px;
        font-family: 'Inter', sans-serif;
        background: #f7fafc;
        transition: all 0.2s ease;
    }

    .dev-login-select:focus {
        outline: none;
        border-color: #7c3aed;
        background: white;
        box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
    }

    .dev-login-panel.collapsed #nszip-devLoginBody {
        display: none;
    }