fieldnotesai
    Preparing search index...

    Function default

    • LOGIN SCREEN Story: Secure login for practitioners

      AC1: Login form accepts email and password

      • Email and password inputs below

      AC2: Valid credentials grant access

      • login() checks credentials and routes to dashboard if valid

      AC3: Invalid credentials show error

      • Shows validation errors and backend error messages

      AC5: Protected routes redirect to login

      • ProtectedRoute handles redirecting unauthenticated users here

      Web restriction: Practitioners cannot log in via web — admin only. Shows an informational message if a practitioner attempts to log in on web.

      Returns Element