Logs in a user using their credentials (username and password) and returns an authentication result. This operation provides detailed information about the login attempt, including a session token and user roles, allowing the user to access the application securely.