I believe the javascript has full access to the DOM and can trivially find my password.
In general: Javascript included with the script tag directly into the page has full access to the DOM, no matter where this Javascript is included from. But Javascript only included in iframe or so does not, it has only access to the DOM of the specific iframe.
I don't want to do an analysis of the current login page (which might also change in the future so that the answer gets stale). But based on above general statement you should be able to analyze, if the current integration of third parties into the login page is a risk or not.
SE login page loads javascript from Google and Cloudfare ... Please do not tell me "trust them".
I'm not sure which browser you are using, but Google Chrome has the majority of the market share. And the browser has way more access to any site you visit with it than a Javascript loaded from a specific site.
Additionally Stackoverflow seems to use a CDN (currently Fastly, not Cloudflare) which is usually the TLS endpoint too. Such a CDN could inject arbitrary things into any website served by the CDN and could this way also do way more harm than a single included Javascript file.
In other words - you need to trust them, even if not for the specific included Javascript files.