diff --git a/src/app/auth/signin/signin-form.tsx b/src/app/auth/signin/signin-form.tsx index baf8788..add6aba 100644 --- a/src/app/auth/signin/signin-form.tsx +++ b/src/app/auth/signin/signin-form.tsx @@ -11,15 +11,7 @@ import { toast } from "sonner"; import { Logo } from "~/components/branding/logo"; import { LegalModal } from "~/components/ui/legal-modal"; import { env } from "~/env"; -import { - Mail, - Lock, - ArrowRight, - Users, - FileText, - TrendingUp, - Shield, -} from "lucide-react"; +import { Mail, Lock, ArrowRight, Shield } from "lucide-react"; interface SignInFormProps { allowRegistration: boolean; @@ -39,10 +31,7 @@ export function SignInForm({ allowRegistration }: SignInFormProps) { e.preventDefault(); setLoading(true); - const { error } = await authClient.signIn.email({ - email, - password, - }); + const { error } = await authClient.signIn.email({ email, password }); setLoading(false); @@ -62,7 +51,6 @@ export function SignInForm({ allowRegistration }: SignInFormProps) { providerId: "authentik", callbackURL: callbackUrl, }); - // The signIn.sso method will automatically redirect to the SSO provider } catch (error) { console.error("[SSO Error]", error); setLoading(false); @@ -71,222 +59,127 @@ export function SignInForm({ allowRegistration }: SignInFormProps) { return (
- {/* Blob Background */}
- - - {/* Hero Section - Hidden on mobile */} -
-
-
- -
-

- Welcome back to your - - {" "} - invoicing workspace - -

-

- Continue managing your clients and creating professional - invoices that get you paid faster. -

-
-
- -
-
-
- -
-
-

- Client Management -

-

- Organize and track all your clients in one place -

-
-
- -
-
- -
-
-

- Professional Invoices -

-

- Beautiful templates that get you paid faster -

-
-
- -
-
- -
-
-

- Payment Tracking -

-

- Monitor your income with real-time insights -

-
-
+ + +
+
+ +
+

Welcome back

+

Sign in to your account

-
- {/* Sign In Form */} -
-
- {/* Mobile Logo */} -
- + {signupDisabled && ( +
+ New account registration is currently disabled.
+ )} -
-

Sign In

-

- Enter your credentials to access your account -

-
- - {signupDisabled && ( -
- New account registration is currently disabled. -
- )} - - {authentikEnabled && ( -
- - -
-
- -
-
- - Or continue with - -
-
-
- )} - -
-
- -
- - setEmail(e.target.value)} - required - autoFocus - className="bg-background/50 border-border/60 focus:bg-background h-11 pl-10 transition-all" - placeholder="m@example.com" - /> -
-
- -
-
- - - Forgot password? - -
-
- - setPassword(e.target.value)} - required - className="bg-background/50 border-border/60 focus:bg-background h-11 pl-10 transition-all" - placeholder="Enter your password" - /> -
-
- + {authentikEnabled && ( +
- +
+
+ +
+
+ or +
+
+
+ )} - {allowRegistration && ( -
- Don't have an account?{" "} - - Sign up +
+
+ +
+ + setEmail(e.target.value)} + required + autoFocus + className="h-10 pl-10" + placeholder="you@example.com" + /> +
+
+ +
+ - )} - -
- By signing in, you agree to our{" "} - - Terms of Service - - } - />{" "} - and{" "} - - Privacy Policy - - } - /> - . +
+ + setPassword(e.target.value)} + required + className="h-10 pl-10" + placeholder="••••••••" + /> +
-
+ + +
+ + {allowRegistration && ( +

+ Don't have an account?{" "} + + Sign up + +

+ )} + +

+ By signing in you agree to our{" "} + Terms} + />{" "} + and{" "} + Privacy Policy} + /> + . +