Styled Box - Copy this React, Mui Component to your project
Design a Login / Signup Component Purpose This component is responsible for user authentication, allowing new users to sign up and existing users to log in. Structure Form Fields Email Input Password Input First Name Input (Signup only) Last Name Input (Signup only) Buttons Login Button Signup Button Variables Inputs: email: String User's email address. password: String User's password. firstName: String User's first name (for signup). lastName: String User's last name (for signup). Outputs: authToken: String Token received upon successful authentication. Design Use standard input fields for email and password. Include conditional rendering for first name and last name based on the action (login/signup). Display appropriate error messages for authentication failures.
