import Link from "next/link";
import Image from "next/image"

export default function AuthLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <div className="min-h-screen grid lg:grid-cols-2">
      {/* Left side - Auth Form */}
      <div className="flex items-center justify-center p-8">
        <div className="w-full max-w-md space-y-8">
          <div className="text-center">
            <Link href="/" className="inline-flex items-center justify-center">
              <Image
                src="/assets/ZuriGuide Logo.png"
                alt="ZuriGuide Logo"
                width={150}
                height={50}
                priority
                className="object-contain"
              />
            </Link>
          </div>
          {children}
        </div>
      </div>

      {/* Right side - Hero Image & Overlay */}
      <div className="relative hidden lg:block">
        {/* Background image with overlays */}
        <div className="absolute inset-0">
          <Image
            src="/assets/zurich.webp"
            alt="Zurich city background"
            width= {3000}
            height = {3000}
            className="w-full h-full object-cover object-center"
            style={{ zIndex: 0 }}
          />
          <div className="absolute inset-0 bg-linear-to-br from-blue-600 via-blue-700 to-indigo-900 opacity-70" />
          <div className="absolute inset-0 bg-black/20" />
        </div>

        <div className="relative h-full flex flex-col justify-end p-12 text-white z-10 gap-18">
          <div className="space-y-4">
            <h1 className="text-4xl font-bold leading-tight">
              Discover Zurich Like Never Before
            </h1>
            <p className="text-blue-100 text-lg">
              Connect with local guides and experience authentic tours in the
              most beautiful city.
            </p>
          </div>

          <div className="space-y-6">
            <div className="flex gap-10">
              <div className="space-y-1">
                <p className="text-3xl font-bold">500+</p>
                <p className="text-blue-200 text-sm">Tours Available</p>
              </div>
              <div className="space-y-1">
                <p className="text-3xl font-bold">200+</p>
                <p className="text-blue-200 text-sm">Expert Guides</p>
              </div>
              <div className="space-y-1">
                <p className="text-3xl font-bold">4.9★</p>
                <p className="text-blue-200 text-sm">Average Rating</p>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  );
}
