You can use the authenticated addon (https://github.com/custom-components/authenticated) to detect successful logins. Then to play the audio I believe you again have to use another custom addon- browser_mod (https://github.com/thomasloven/hass-browser_mod) . You can either use an automation to trigger the audio or use nodered for a better customization. Hope this is what you are looking for.