Redirect to referring page after OAuth login
Captures the referer on the login form render (not just the handle
submit) so users return to the page they signed in from. Same-host
check and protocol-relative path rejection guard against open redirect
via a crafted referer.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>