Sign-in pages — a second layout route, outside the shell, reachable without a session

<AuthLayout> · layout route routes/auth.tsx · centred card on the page ground
routes/sign-in.tsx · /sign-in
<AuthCard>
<ProductMark>

h1 “Sign in to FeeCheck” · one sentence: only invited Google accounts get in

<Button variant="primary" as="a">

“Sign in with Google” — a link to the backend's /oauth2/authorization/google; Spring Security does the rest. No token ever reaches the app's code.

info line · “Back to the website” link

A deep link opened before sign-in comes back here and returns to it afterwards (#100 AC-4) — the backend keeps the saved request, not the URL.

routes/no-access.tsx · /no-access
<AuthCard>
<ProductMark>
<StateChip tone="needs-person">

“Not signed in”

h1 “This Google account has no access” · the address that was used · “no session was started” · how to get invited

<Button variant="primary" as="a"> “Use another Google account” (account chooser) · “Back to the website”

Answered with HTTP 403 and no session. Where the page gets the address from is #201's to settle — never from the URL (it is personal data).

Not in the app

Google's own sign-in page: Google's, not ours.

The website's Login: frontend/site, a link to the app's address (#203).

Sign out: a POST from <SignOutButton> in the shell; the backend ends the session and redirects to the website.

Guard

Every other route sits under <AppShell>, whose loader asks GET /api/me. 401 → /sign-in. The backend checks every /api/** call itself; the guard only spares a flash of the shell.