its a DNS hijack, redirecting connection to a registered domain, the page is a spoof of the workflow,with mitigation vs the MFA by abusing OAuth.
the page is HTTPS, an OAuth token is issued to the malignant client.
there is probably some WPAD malarchy in cases.
the entire workflow has minor variations but once an attacker has access to your M365 the chance of having everything you have done with M365 is very likely.
its not exactly MITM its more like Man Offside of the Middle
what happens next depends on the attackers objective.