"use client";
import React, { Suspense } from "react";
import { Navbar } from "@/components/layout/Navbar";
import { Footer } from "@/components/layout/Footer";
import { LoginForm } from "@/components/auth/LoginForm";
import { LogIn } from "lucide-react";

export default function LoginPage() {
  return (
    <div className="min-h-screen flex flex-col">
      <Navbar />
      <main className="flex-1 flex items-center justify-center p-6 bg-gradient-to-br from-brand-50 via-white to-brand-50">
        <div className="w-full max-w-md border rounded-2xl p-8 bg-white shadow-sm">
          <div className="flex items-center gap-3 mb-6">
            <div className="w-11 h-11 rounded-xl bg-brand-50 flex items-center justify-center shrink-0">
              <LogIn className="w-5 h-5 text-brand-600" />
            </div>
            <div>
              <h1 className="text-xl font-semibold text-gray-900">Welcome back</h1>
              <p className="text-sm text-gray-500">Log in to manage your events and tickets.</p>
            </div>
          </div>
          <Suspense fallback={<div />}>
            <LoginForm />
          </Suspense>
        </div>
      </main>
      <Footer />
    </div>
  );
}
