# RAMA AG — Material Particles Login Experience

Status: implemented and active at http://127.0.0.1:3400/login. Owner real-account login acceptance passed: the owner confirmed signing in, and the authenticated Halit administrator dashboard was observed at port 3400.

## Implementation

Replaced the Roller Frame login with a black Material Particles composition. A static 410 px titanium card contains the unchanged original proportional logo, WORKFORCE PLATFORM label, existing login fields, password visibility, translated feedback and minimalist loading button. SQ/DE use the original language POST mechanism. The canvas and ambient lighting are decorative and cannot intercept input.

Particles are 0.5–2.5 CSS px in diameter, individually translucent, side-weighted and softly blurred at selected depths. Bounded periodic motion and fading repeat continuously every 18 seconds without a falling/wrapping reset. Mobile uses 38 particles instead of desktop 100–140 (68.3% reduction at 1440 px). Canvas DPR is capped at 1.5. Hidden tabs cancel animation frames; reduced-motion users receive a static background. No video, CDN, external assets or new dependency was added.

## Explicit owner-approved functional exception

The original login did not contain Remember Me, and the original users table lacked Laravel's remember_token. The owner explicitly approved both the feature and adding only this nullable column. A single forward migration adds users.remember_token VARCHAR(100) NULL; no old column or record is overwritten.

Remember Me is unchecked by default and uses Laravel's encrypted recaller cookie with a 30-day lifetime. Normal login retains its current session behavior. A verified recaller can start a fresh session; the existing eight-hour absolute session cap, active-account check, forced-password-change flow, CSRF, throttling, role redirects and logout remain enforced. Logout invalidates the recaller and rotates the token. remember_token is hidden from model serialization. Passwords are not reset or disclosed.

## Modified files

- resources/views/auth/login.blade.php — login card and opt-in checkbox.
- New resources/views/components/auth/material-particles.blade.php — decorative canvas/lighting component.
- resources/views/components/layouts/guest.blade.php — matching dark theme color.
- resources/css/login-titanium.css — replaced login-only styles.
- resources/js/login.js — preserved form behavior, imports particle module.
- New resources/js/material-particles.js — lightweight Canvas lifecycle/animation.
- lang/sq/login.php and lang/de/login.php — translated checkbox/platform labels.
- app/Http/Controllers/Auth/LoginController.php — owner-approved Remember Me opt-in only.
- app/Http/Middleware/EnsureUserIsActive.php — initialize a fresh verified recaller session without removing the session cap.
- app/Models/User.php — hide remember_token.
- New database/migrations/2026_11_29_220000_add_remember_token_to_users.php.
- tests/Feature/Auth/LoginTest.php and LoginTitaniumPageTest.php; production assets/manifest.

## Verification

37 authentication/security tests passed with 215 assertions in the guarded isolated RAMA test database. These cover valid and invalid login, opt-in recaller cookie, logout token revocation, actual recaller restoration, suspended accounts, throttling, session protections, username security, original logo proportions and translations. No production fixture accounts were created. Production build and Blade compilation passed. JavaScript syntax checks passed.

Deterministic animation checks passed for 18-second positional/opacity continuity, particle bounds/count, mobile reduction, DPR cap, hidden-tab cancellation, reduced-motion static rendering and event/frame cleanup.

Actual running browser checks passed: SQ/DE switching, empty-field validation, one invalid non-account login, password show/hide, preservation of the Remember Me choice after failure, and no console errors. The owner account was normally logged out to inspect the login. The owner subsequently completed real login with the existing account. The running dashboard displayed Halit with the Administrator role. Remember Me restoration and expiry remain covered by the isolated automated tests; a 30-day real-browser retention test is not claimed.

Responsive browser checks: desktop 1149×893 (410 px card centered), tablet 768×1024 and phone 390×844 (350 px card). No page horizontal overflow; mobile submit remained accessible even with a server error. Temporary viewport overrides were reset. These are browser checks, not physical-device tests.

## Preservation and deployment

Active RAMA project only: C:/Users/PANDAZZ/Desktop/RAMA-AG/rama-workforce-laravel. Port 3400; database rama_workforce_laravel on 127.0.0.1:3307. Quality Workforce and VFS were not accessed or changed. No PHP restart or machine-wide setting change occurred.

Protected fresh backup: 587 application files, verified ZIP/hash integrity; consistent database snapshot of 50 tables, 32 triggers and 6,960 rows, serialized and round-trip verified. Final comparison preserved every existing user/password, attendance, contract, historical value, monthly closing, export, business record and trigger. Only the approved nullable column/migration row and normal login/logout audit/cache/session activity changed. 84 protected environment/private/PDF/service/route/layout files were hash-verified unchanged.

Detailed receipts and tests are under D:/- CLAUD PROJECTS/RAMA AG/login-material/evidence. Backup is under protected-backup. Old hashed assets are retained for open tabs. Other pending development changes were excluded.

## Recovery and remaining acceptance

The patch manifest lists the exact changed and introduced files. For application rollback, restore only those pre-existing files from the protected pre-change ZIP and restore the prior Vite manifest last; clear/rebuild RAMA views. Keep current environment, private storage and business records. The extra nullable column can remain safely after application rollback; do not run a destructive migration rollback or restore an old database over current records. Existing Remember Me cookies are ignored by the prior login middleware until a normal login is performed.

Real owner login acceptance is complete. No passwords were requested in chat or reset. Long-term browser retention was not directly tested.
