import type { Metadata } from "next"
import Link from "next/link"

export const metadata: Metadata = {
  title: "Authentication error — Parallax",
}

export default function AuthErrorPage() {
  return (
    <main className="flex min-h-screen items-center justify-center bg-[var(--color-bg)] px-6 py-20">
      <section className="w-full max-w-[400px] rounded-xl border border-[var(--color-border)] bg-[var(--color-surface)] p-10 text-center">
        <p className="mb-6 font-serif text-[22px] tracking-[0.15em] text-[var(--color-accent)]">
          PARALLAX
        </p>
        <h1 className="font-serif text-[1.6rem] font-normal text-[var(--color-text-primary)]">
          Authentication error
        </h1>
        <p className="mt-2 text-[13px] leading-6 text-[var(--color-text-secondary)]">
          Something went wrong signing you in. Please try again.
        </p>
        <Link
          href="/auth/signin"
          className="mt-8 inline-block text-[13px] text-[var(--color-accent)] hover:underline"
        >
          &larr; Back to sign in
        </Link>
      </section>
    </main>
  )
}
