> ## Documentation Index
> Fetch the complete documentation index at: https://docs.younegotiate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Login

> A YouNegotiate operations user opens the Super Admin login page and signs in with their Super Admin credentials.

## Real-World Example

A YouNegotiate operations user opens the Super Admin login page and signs in with their Super Admin credentials. After login, they should reach the Super Admin portal, not the Creditor or EcoMail Hub / EcoPortal.

## Visual Flow

```mermaid placement="top-right" actions={true} theme={"system"}
flowchart TD
    A["Super Admin opens login"] --> B["User enters credentials"]
    B --> C{"Credentials valid?"}
    C -->|Yes| D["Open Super Admin portal"]
    C -->|No| E["Show login error"]
    classDef default fill:#F8FAFC,stroke:#64748B,stroke-width:1.5px,color:#0F172A;
    classDef actor fill:#E0F2FE,stroke:#0284C7,stroke-width:2px,color:#0C4A6E;
    classDef system fill:#F8FAFC,stroke:#64748B,stroke-width:1.5px,color:#0F172A;
    classDef decision fill:#FEF3C7,stroke:#D97706,stroke-width:2px,color:#78350F;
    classDef risk fill:#FEE2E2,stroke:#DC2626,stroke-width:2px,color:#7F1D1D;
    classDef outcome fill:#DCFCE7,stroke:#16A34A,stroke-width:2px,color:#14532D;
    class A actor;
    class B system;
    class C decision;
    class D outcome;
    class E risk;
    linkStyle default stroke:#94A3B8,stroke-width:2px;
```

## How It Should Work

* It should authenticate only Super Admin users.
* It should redirect logged-in Super Admin users into the Super Admin portal.
* It should keep Super Admin sessions separate from creditor and EcoMail Hub / EcoPortal sessions.

## How It Should Not Work

* It should not allow creditor users to access Super Admin areas.
* It should not reveal whether sensitive platform accounts exist through detailed login errors.
* It should not redirect a Super Admin user into the wrong portal.

## Developer Notes

* Use the Super Admin guard for this flow.
* Redirect behavior should not reuse creditor-only assumptions.

## Related App Areas

* `routes/superadmin/auth.php`
* `app/Livewire/SuperAdmin/Auth/LoginPage.php`
