import type { ReactNode } from "react";

export default function AuthLayout({ children }: { children: ReactNode }) {
  return (
    <div className="relative min-h-screen overflow-hidden bg-gradient-to-br from-[hsl(var(--primary)/0.12)] via-background to-[hsl(var(--teal)/0.08)]">
      <div
        className="pointer-events-none absolute inset-0 opacity-[0.35]"
        aria-hidden
        style={{
          backgroundImage:
            "radial-gradient(circle at 20% 20%, hsl(var(--primary) / 0.25) 0%, transparent 45%), radial-gradient(circle at 80% 10%, hsl(var(--teal) / 0.2) 0%, transparent 40%), radial-gradient(circle at 50% 90%, hsl(var(--primary) / 0.15) 0%, transparent 50%)",
        }}
      />
      <div className="relative flex min-h-screen items-center justify-center p-4 sm:p-6">
        <div className="w-full max-w-md">{children}</div>
      </div>
    </div>
  );
}
