diff --git a/packages/webui/components/auth-layout.tsx b/packages/webui/components/auth-layout.tsx
new file mode 100644
index 00000000..3a60e4eb
--- /dev/null
+++ b/packages/webui/components/auth-layout.tsx
@@ -0,0 +1,74 @@
+import { ShumaiLogo } from '@/ui/components/ui/icons'
+import { CheckCircle2 } from 'lucide-react'
+import { ReactNode } from 'react'
+
+export function AuthLayout({ children }: { children: ReactNode }) {
+ return (
+
+ {/* Drifting Background Mesh Blobs */}
+
+
+
+ {/* Main Glassmorphic Split-Pane Card */}
+
+ {/* Left Pane (Brand Showcase) */}
+
+ {/* Subtle Grid Overlay */}
+
+
+ {/* Logo & Brand */}
+
+
+
+ Shumai
+
+
+
+ {/* Marketing Copy / Feature Points */}
+
+
+ One workspace
+
+ for all your
+
+
+ creative assets.
+
+
+
+ Upload and index your files, enrich them with custom metadata schemas, draw
+ annotations directly on media, and gather instant feedback — all in one modern
+ workspace built for creators.
+
+
+
+ {[
+ 'Instant asset uploads & high-fidelity media players',
+ 'Custom metadata schemas & drawing canvas reviews',
+ 'Frictionless team workspaces & secure sharing',
+ ].map((text, i) => (
+ -
+
+ {text}
+
+ ))}
+
+
+
+ {/* Footer Label */}
+
+
+ Join our community of developers and designers.
+
+
+
+
+ {/* Right Pane (Form Container) */}
+
{children}
+
+
+ )
+}
diff --git a/packages/webui/routes/login.tsx b/packages/webui/routes/login.tsx
index e1ecfadf..e9e58551 100644
--- a/packages/webui/routes/login.tsx
+++ b/packages/webui/routes/login.tsx
@@ -10,8 +10,9 @@ import { useEffect, useState } from 'react'
import { useForm } from 'react-hook-form'
import { z } from 'zod'
import { signIn } from '@/ui/lib/auth-client'
-import { Loader2, Mail, Lock, ArrowRight, LogIn, CheckCircle2 } from 'lucide-react'
+import { Loader2, Mail, Lock, ArrowRight, LogIn } from 'lucide-react'
import { ShumaiLogo } from '@/ui/components/ui/icons'
+import { AuthLayout } from '@/ui/components/auth-layout'
const loginSchema = z.object({
email: z.string().email('Invalid email address'),
@@ -77,165 +78,100 @@ function LoginPage() {
}
return (
-
- {/* Drifting Background Mesh Blobs */}
-
-
-
- {/* Main Glassmorphic Split-Pane Card */}
-
- {/* Left Pane (Brand Showcase) */}
-
- {/* Subtle Grid Overlay */}
-
-
- {/* Logo & Brand */}
-
-
-
- Shumai
-
-
-
- {/* Marketing Copy / Feature Points */}
-
-
- One workspace
-
- for all your
-
-
- creative assets.
-
-
-
- Upload and index your files, enrich them with custom metadata schemas, draw
- annotations directly on media, and gather instant feedback — all in one modern
- workspace built for creators.
-
-
-
- {[
- 'Instant asset uploads & high-fidelity media players',
- 'Custom metadata schemas & drawing canvas reviews',
- 'Frictionless team workspaces & secure sharing',
- ].map((text, i) => (
- -
-
- {text}
-
- ))}
-
-
-
- {/* Footer Label */}
-
-
- Join our community of developers and designers.
-
-
-
-
- {/* Right Pane (Form Container) */}
-
-
-
- Welcome Back
-
-
- Enter your credentials to access your account.
-
-
-
- {error && (
-
- {error}
-
- )}
-
-
-
-
-
+
+
+
+ Welcome Back
+
+
+ Enter your credentials to access your account.
+
-
+
+ {error && (
+
+ {error}
+
+ )}
+
+
+
+
+
)
}
diff --git a/packages/webui/routes/signup.tsx b/packages/webui/routes/signup.tsx
index 4edc0dd1..44e3ddd3 100644
--- a/packages/webui/routes/signup.tsx
+++ b/packages/webui/routes/signup.tsx
@@ -4,7 +4,7 @@ import { Button } from '@/ui/components/ui/button'
import { Card, CardDescription, CardFooter, CardHeader, CardTitle } from '@/ui/components/ui/card'
import { Input } from '@/ui/components/ui/input'
import { Label } from '@/ui/components/ui/label'
-import { Loader2, Mail, Lock, CheckCircle2, ArrowRight, UserPlus } from 'lucide-react'
+import { Loader2, Mail, Lock, ArrowRight, UserPlus } from 'lucide-react'
import { useAuthStore } from '@/ui/stores/auth'
import { zodResolver } from '@hookform/resolvers/zod'
import { createFileRoute, redirect, useNavigate } from '@tanstack/react-router'
@@ -13,6 +13,7 @@ import { z } from 'zod'
import { signUp } from '@/ui/lib/auth-client'
import { useState } from 'react'
import { ShumaiLogo } from '@/ui/components/ui/icons'
+import { AuthLayout } from '@/ui/components/auth-layout'
const signupSchema = z.object({
email: z.string().email('Invalid email address'),
@@ -135,183 +136,118 @@ function SignupPage() {
}
return (
-
- {/* Drifting Background Mesh Blobs */}
-
-
+
+
+
+ Create Account
+
+
+ Start building and organizing your space.
+
- {/* Main Glassmorphic Split-Pane Card */}
-
- {/* Left Pane (Brand Showcase) */}
-
- {/* Subtle Grid Overlay */}
-
-
- {/* Logo & Brand */}
-
-
-
- Shumai
+ {/* Context Banners (First User / Invite Info) */}
+ {isFirstUser && (
+
+ 🎉
+ You will be the owner of the default workspace as the first user!
+
+ )}
+ {inviteInfo && !('error' in inviteInfo) && (
+
+ 👋
+
+ {inviteInfo.inviterName} invited you to join{' '}
+ {inviteInfo.teamName || inviteInfo.projectName} as a{' '}
+ {inviteInfo.role}.
-
- {/* Marketing Copy / Feature Points */}
-
-
- One workspace
-
- for all your
-
-
- creative assets.
-
-
-
- Upload and index your files, enrich them with custom metadata schemas, draw
- annotations directly on media, and gather instant feedback — all in one modern
- workspace built for creators.
-
-
-
- {[
- 'Instant asset uploads & high-fidelity media players',
- 'Custom metadata schemas & drawing canvas reviews',
- 'Frictionless team workspaces & secure sharing',
- ].map((text, i) => (
- -
-
- {text}
-
- ))}
-
-
-
- {/* Context Banners (First User / Invite Info) */}
-
- {isFirstUser && (
-
- 🎉
- You will be the owner of the default workspace as the first user!
-
- )}
- {inviteInfo && !('error' in inviteInfo) && (
-
- 👋
-
- {inviteInfo.inviterName} invited you to join{' '}
- {inviteInfo.teamName || inviteInfo.projectName} as a{' '}
- {inviteInfo.role}.
-
-
- )}
- {!isFirstUser && !inviteInfo && (
-
- Join our community of developers and designers.
-
- )}
-
-
-
- {/* Right Pane (Form Container) */}
-
-
-
- Create Account
-
-
- Start building and organizing your space.
-
-
-
- {error && (
-
- {error}
-
- )}
-
-
-
-
-
+ )}
-
+
+ {error && (
+
+ {error}
+
+ )}
+
+
+
+
+
)
}