import clsx from 'clsx'
import {InputHTMLAttributes, ReactNode} from 'react'
// Shared building blocks for the /register and /signin pages so the two stay in
// visual lockstep. Mirrors the home page design language: warm tokens, a soft
// radial glow for depth, and staggered fade-up entrances.
/** Page wrapper: centers the card and paints the hero-style radial glow behind it. */
export function AuthShell({children}: {children: ReactNode}) {
return (
{/* Soft radial glow behind the card for depth — mirrors the home hero.
Dark mode uses a brighter, lighter-hued, faster-falloff core so it reads
as light, not brown haze. */}
{/**/}
)
}
/** Gradient rule with a centered label. */
export function AuthDivider({label}: {label: string}) {
return (
{label}
)
}
/** Primary CTA, matching the home hero button (amber, shadow, hover lift). */
export function AuthSubmitButton({
isLoading,
children,
}: {
isLoading?: boolean
children: ReactNode
}) {
return (
)
}
/** Centered error message. Renders nothing when empty. */
export function AuthError({children}: {children: ReactNode}) {
if (!children) return null
return
{children}
}
/** Footer line ("Already have an account?" etc.) with link styling + entrance. */
export function AuthFooter({children}: {children: ReactNode}) {
return (