STEP 8A CORRECTED - CLEAN UPLOAD

IMPORTANT:
1. This package intentionally does NOT contain config/database.php.
2. Do NOT replace, delete, or edit your existing config/database.php.
3. Upload/merge the files in this package into your existing numerology-platform project.
4. The authentication JavaScript now detects whether the public pages are served from /public/ and uses the correct API path.
5. It also handles non-JSON server responses more safely.

FILES IN THIS PATCH:
- public/login.html
- public/register.html
- public/assets/auth.js
- api/index.php
- api/controllers/AuthController.php
- api/routes/auth-register.php
- api/routes/auth-login.php
- api/routes/auth-logout.php
- api/routes/auth-me.php

TEST:
1. Upload/merge these files only.
2. Open public/register.html (or your normal register page URL).
3. Hard refresh with Ctrl+F5.
4. Create one test account.
5. Stop and report the exact result.

DO NOT proceed to Step 8B until registration succeeds.
