Only allow signups through Universal Login when invited to an organization

We have a scenario where we have some users in organisations being signed up directly through our app and some need to be invited.
We want to allow the auth0 hosted sign up process ONLY for those users that come with an invitation.

Using the CSS described here we can conditionally hide sign up option from the new universal login experience:

As detailed by @rueben.tiow there this is just a PART of the solution, and we need to show an error/deny signup if it is not coming from an invitation.

Unfortunately I can’t find much info re: pre-user-registration actions and ability to discern that the signup is part of an invitation.

Is there any documentation on how to achieve this?