Authentication
Auth Layouts
Centered, split, and minimal auth layout variants.
Overview
NextBento supports three auth layout variants. Switch app-wide by editing lib/config/auth-layouts.ts:
export type AuthLayoutVariant = 'centered' | 'split' | 'minimal'
/** Change this to switch auth layout app-wide. */
export const AUTH_LAYOUT_VARIANT: AuthLayoutVariant = 'split'
Layout Variants
Centered
Single column, form centered on the page. Minimal design.
Split
Split screen: form on one side, branded image or content on the other. Best for marketing-focused auth pages.
Minimal
Compact form with minimal chrome. Good for embedded or modal auth flows.
Component Mapping
Each layout variant uses different form components:
| Layout | Login | Signup | Forgot Password | Reset Password |
|---|---|---|---|---|
| Centered | login-form.tsx | signup-form.tsx | forgot-password-form.tsx | reset-password-form.tsx |
| Split | login-form-split.tsx | signup-form-split.tsx | forgot-password-form-split.tsx | reset-password-form-split.tsx |
| Minimal | login-form-minimal.tsx | signup-form-minimal.tsx | forgot-password-form-minimal.tsx | reset-password-form-minimal.tsx |
Auth Pages
Auth pages live in app/(auth)/:
login/page.tsx,login-2/page.tsx,login-3/page.tsx— Different layout variants- Same pattern for signup, forgot-password, reset-password
The -2 and -3 suffixes correspond to different layout variants. The main login uses the variant from AUTH_LAYOUT_VARIANT.
Customization
To customize a layout:
- Edit the form component (e.g.
components/auth/login-form-split.tsx) - Customize
auth-split-layout.tsxfor split layout structure - Update branding, colors, or copy in the component
Next Steps
- Authentication — Auth flow overview
- Accept Invitation — Team invite flow