Whenever you're ready, walk me through how you'd approach this.
How would you design a system for managing user authentication?
Cover the end-to-end design, including identity storage, password handling, login and logout APIs, session or token management, MFA, account recovery, rate limiting, and auditability. Explain consistency, availability, security controls, scaling, and behavior during dependency or regional failures.