## ADDED Requirements ### Requirement: API Rate Limiting The system SHALL implement rate limiting to protect against brute force attacks and DoS attempts. #### Scenario: Login rate limit enforcement - **GIVEN** a client IP has made 5 login attempts within 1 minute - **WHEN** the client attempts another login - **THEN** the system returns HTTP 429 Too Many Requests - **AND** the response includes a Retry-After header #### Scenario: Rate limit window reset - **GIVEN** a client has exceeded the rate limit - **WHEN** the rate limit window expires (1 minute) - **THEN** the client can make new requests #### Scenario: Rate limit per IP - **GIVEN** rate limiting is IP-based - **WHEN** different IPs make requests - **THEN** each IP has its own rate limit counter