import { localizedMetadata } from "@/lib/i18n/serverMetadata";
import type { Metadata } from "next";
import { redirect } from "next/navigation";

/* Title only — `robots: noindex` comes from `(auth)/layout.tsx`. The page only
   redirects, but every route declares its own title. */
const pageMetadata: Metadata = {
  title: "Sign in",
};

export async function generateMetadata(): Promise<Metadata> {
  return localizedMetadata(pageMetadata);
}

/**
 * LinkedIn sign-in was cancelled (client answers PDF p.6, item 19: only Google
 * sign-in is needed). The old redirect URI is kept as a route so a stale tab or
 * bookmark lands on the login page instead of a 404.
 */
export default function Page() {
  redirect("/login");
}
