> For the complete documentation index, see [llms.txt](https://t420.gitbook.io/t420/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://t420.gitbook.io/t420/claude-auth-funnel-fix.md).

# Claude Auth Funnel Fix Prompt

Paste this into a fresh Claude Code terminal session at the FleetOS repo root.

***

You are working in the `ZBO19/FleetOS` repository.

Read these first:

1. `docs/agent.md`
2. `docs/production-plan.md`
3. `docs/claude-everything-10of10-final.md`
4. `docs/claude-plg-gtm-kickoff.md`

Then inspect the actual auth/login/signup code paths, header/nav, landing page CTA flow, modal/drawer behavior, and current route handling before making any claims.

## Mission

Fix the FleetOS **login/signup/auth funnel** so it feels intentional, premium, and conversion-ready.

Current problem: The auth entry point still feels unresolved. The screenshot shows a thin header treatment with nav links plus an email field + GO button + X, which does not feel like a finished login/signup experience.

The goal is:

* make login obvious
* make signup obvious
* make demo obvious
* make supplier vs fleet paths obvious
* reduce confusion at the top of the funnel
* make the auth flow feel product-led, not hacked in

***

## What is wrong right now

You must assume these are likely true unless code inspection proves otherwise:

* login and signup are visually mixed together
* the email field in the header does not feel like a complete auth flow
* the difference between "Login", "Get Started", and demo is unclear
* supplier vs fleet entry is not clean enough
* the auth UI does not match the rest of the product in polish and clarity

***

## Required outcome

Users should be able to tell instantly:

1. how to log in if they already have access
2. how to sign up if they are new
3. how to try a demo without commitment
4. whether they are entering as supplier or fleet

The auth funnel should support PLG, not fight it.

***

## Tasks

### 1. Audit current auth entry points

Inspect and map:

* landing header CTA behavior
* login route or modal
* signup route or modal
* magic-link flow
* supplier vs fleet onboarding path
* demo flow
* auth callback behavior

### 2. Replace the awkward header auth treatment

If the current header email field + GO button is still the main auth entry, redesign it.

Preferred direction:

* keep header nav clean
* separate `Login` from `Get Started`
* do not force an inline email box in the header unless it is truly elegant and proven
* move signup/auth capture into a cleaner modal, page, or dedicated flow

### 3. Make auth choices explicit

Create a cleaner auth decision tree:

* `Start as Supplier`
* `Start as Fleet`
* `Try Supplier Demo`
* `Try Fleet Demo`
* `Login`

### 4. Clarify login vs signup

The UI must clearly separate:

* returning user login
* first-time signup / create access
* demo / trial path

### 5. Preserve low friction

Keep the product-led philosophy:

* magic links are good if done clearly
* no unnecessary friction
* no enterprise-style wall before value
* but clarity must beat cleverness

### 6. Improve copy

Tighten auth microcopy so it says exactly what happens:

* enter work email
* get a secure link
* continue in browser
* no app install needed
* choose supplier or fleet workflow

### 7. Polish routes and edge states

Ensure:

* auth callback is reliable
* refresh/deep-linking works
* login/signup screens match brand quality
* error states are readable
* success states are reassuring
* back/cancel behavior is clean

***

## Design principles

* clean top-of-funnel UX
* no confusing mixed signals
* no half-header / half-modal auth compromise
* the flow should feel trustworthy and deliberate
* match FleetOS brand and product quality

***

## Acceptance criteria

You are not done unless:

* login is obvious
* signup is obvious
* demo is obvious
* supplier vs fleet path is obvious
* header feels cleaner
* auth flow feels premium and low-friction
* auth routes/modals/pages are consistent with the rest of FleetOS

***

## Required output style

* Be concrete.
* Show exact files changed.
* Keep a running checklist.
* Make incremental commits.
* Call out the current auth confusion clearly before fixing it.

***

## First response format

Your first response must contain exactly these sections:

1. `Current auth funnel problems`
2. `Best auth UX direction`
3. `Execution plan`
4. `First files I will change`

Then start work.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://t420.gitbook.io/t420/claude-auth-funnel-fix.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
