Hook and Redirect AWAY from Member Options Page

Is there a way to "hook" the redirect to the MOP allowing the presentation of a "custom" login / registration INSTEAD of MOP when a user is not logged in and attempts to access restricted content?
Ideally I would like to present a login as a modal overlay/popup in front of the restricted content to provide a seamless "just in time" login when a user attempts access, and providing there the option to log in or register.
Ideally I would like to present a login as a modal overlay/popup in front of the restricted content to provide a seamless "just in time" login when a user attempts access, and providing there the option to log in or register.