---
import Layout from "@layouts/Layout.astro";
import PasswordResetForm from "@components/auth/PasswordResetForm.astro";
import { SITE_NAME } from "@constants/constants.ts";

const seo = {
  title: `Сброс пароля | ${SITE_NAME}`,
  description: "Установка нового пароля для вашего аккаунта",
};

// Получаем токен из URL
const token = Astro.url.searchParams.get("token") || "";
---

<Layout
  title={seo.title}
  description={seo.description}
  pagePath="/auth/reset-password"
  bodyClass="bg-[#F6F7FA]"
>
  <div class="min-h-[calc(100vh-400px)] flex items-center justify-center py-12">
    <div class="w-full max-w-md">
      <!-- Форма установки нового пароля -->
      <div class="bg-white border border-gray-200 rounded-2xl p-8 shadow-xl">
        <PasswordResetForm mode="reset" token={token} />
      </div>
    </div>
  </div>
</Layout>
