How to inject hCaptcha in custom theme’s login modal?

hCaptcha successfully replaces Magento’s captcha, but in this place it fails.
In config, if I set the captcha to “no,” eventually it renders neither. The issue is that the captcha is not getting replaced.

Do I need to look into JS layouts?