How to display a popup when click my signup button

I have a SSO with my membership plugin. I have my own button that replace the regular signup button.

When I click the button, I want the regular popup to open but with my form in it (I will add html/css). How to do that?