How to realize luminous lines?

I want to achieve a gradient light border on the top and bottom sides of a selection box, but I have no idea how to achieve it.

image
Attach a rendering

Gradient on border is not supported now. You can just place 2 images below and above the black box.

Thank you for your guidance. I understand in a flash.