/*import { Link } from '@inertiajs/react';
import AppLogoIcon from '@/components/app-logo-icon';
import { home } from '@/routes';
import type { AuthLayoutProps } from '@/types';

export default function AuthSimpleLayout({
    children,
    title,
    description,
}: AuthLayoutProps) {
    return (
        <div className="flex min-h-svh flex-col items-center justify-center gap-6 bg-background p-6 md:p-10">
            <div className="w-full max-w-sm">
                <div className="flex flex-col gap-8">
                    <div className="flex flex-col items-center gap-4">
                        <Link
                            href={home()}
                            className="flex flex-col items-center gap-2 font-medium"
                        >
                            <div className="mb-1 flex h-9 w-9 items-center justify-center rounded-md">
                                <AppLogoIcon className="size-9 fill-current text-[var(--foreground)] dark:text-white" />
                            </div>
                            <span className="sr-only">{title}</span>
                        </Link>

                        <div className="space-y-2 text-center">
                            <h1 className="text-xl font-medium">{title}11</h1>
                            <p className="text-center text-sm text-muted-foreground">
                                {description}
                            </p>
                        </div>
                    </div>
                    {children}
                </div>
            </div>
        </div>
    );
}
*/
import { Link } from '@inertiajs/react';
import AppLogoIcon from '@/components/app-logo-icon';
import { home } from '@/routes';
import type { AuthLayoutProps } from '@/types';

export default function AuthSimpleLayout({
    children,
    title,
    description,
}: AuthLayoutProps) {
    return (
        <div className="relative flex min-h-svh overflow-hidden bg-background">
            {/* Background */}
            <div className="absolute inset-0 bg-gradient-to-br from-orange-50 via-white to-orange-100 dark:from-zinc-950 dark:via-zinc-900 dark:to-zinc-950" />

            {/* Decorative blur */}
            <div className="absolute top-[-120px] left-[-120px] h-[320px] w-[320px] rounded-full bg-orange-500/20 blur-3xl" />
            <div className="absolute right-[-120px] bottom-[-120px] h-[320px] w-[320px] rounded-full bg-orange-400/10 blur-3xl" />

            <div className="relative z-10 flex w-full items-center justify-center p-6 md:p-10">
                <div className="w-full max-w-md">
                    <div className="rounded-3xl border border-border/50 bg-background/80 p-8 shadow-2xl backdrop-blur-xl">
                        <div className="flex flex-col gap-8">
                            {/* Logo */}
                            <div className="flex flex-col items-center gap-5">
                                <Link
                                    href={home()}
                                    className="group flex flex-col items-center gap-3"
                                >
                                    <div className="flex h-16 w-16 items-center justify-center rounded-2xl bg-gradient-to-br from-orange-500 to-orange-600 shadow-lg shadow-orange-500/20 transition-transform duration-300 group-hover:scale-105">
                                        <AppLogoIcon className="size-9 fill-current text-white" />
                                    </div>

                                    <div className="text-center">
                                        <h2 className="text-2xl font-bold tracking-tight text-foreground">
                                            Sporto
                                        </h2>

                                        <p className="mt-1 text-sm text-muted-foreground">
                                            Спорт рядом с тобой
                                        </p>
                                    </div>
                                </Link>
                                {/* Title */}
                                {/*
                                <div className="space-y-2 text-center">
                                    <h1 className="text-2xl font-semibold tracking-tight text-foreground">
                                        {title}
                                    </h1>

                                    <p className="text-sm leading-relaxed text-muted-foreground">
                                        {description}
                                    </p>
                                </div>
                                */}
                            </div>

                            {/* Form */}
                            <div>{children}</div>

                            {/* Bottom text */}
                            <div className="text-center text-xs leading-relaxed text-muted-foreground">
                                Йога • Пилатес • Плавание • Танцы • Футбол •
                                Стретчинг • Силовые тренировки и др.
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    );
}
