PortalPeople_AuthRedirect v1.1.0

DESCRIPTION
-----------
This Magento 2 module replaces the first step of checkout with a standalone login or guest selection page.
It provides:
- A secure AJAX-based login form using Alpine.js and Hyvä styles
- Database logging of login attempts with email, IP, success flag, and timestamp
- Redirect to /checkout/cart if basket is empty
- Redirect to /checkout#shipping on successful login
- Future support for rate limiting per IP/email

FILES
-----
Controller/Index/Index.php:
- Handles /authredirect route
- Redirects to /checkout/cart if basket is empty

Controller/Ajax/Login.php:
- Handles AJAX login submission
- Logs all login attempts
- Redirects to /checkout#shipping on success

Model/LoginAttemptLogger.php:
- Writes login attempts to portalpeople_authredirect_login_attempt

Setup/Patch/Schema/CreateLoginAttemptLogTable.php:
- Creates the login attempt table with proper indexes

view/frontend/templates/login-form.phtml:
- Hyvä-compatible Alpine.js login form

HOW TO INSTALL
--------------
1. Copy module to app/code/PortalPeople/AuthRedirect
2. Run:
   bin/magento module:enable PortalPeople_AuthRedirect
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush

3. Place <block> in your custom layout XML to include the login form:
   <block class="Magento\Framework\View\Element\Template"
          name="authredirect.login.form"
          template="PortalPeople_AuthRedirect::login-form.phtml"/>

4. Load /authredirect when clicking 'Proceed to Checkout' (custom redirect logic required)

LOGGING
-------
Login attempts are stored in portalpeople_authredirect_login_attempt.
You must add a GDPR privacy notice if logging IPs/emails.

