import { Suspense } from 'react';

import { PasswordSetForm } from '@/components/portal/password-set-form';

export default function PortalResetPasswordPage() {
  return (
    <Suspense
      fallback={
        <div className="min-h-screen flex items-center justify-center bg-gray-50 text-sm text-gray-500">
          Loading…
        </div>
      }
    >
      <PasswordSetForm
        endpoint="/api/portal/auth/reset-password"
        title="Choose a new password"
        description="Enter a new password to regain access to your client portal."
        successTitle="Password updated"
        successDescription="You can now sign in with your new password."
        submitLabel="Update password"
      />
    </Suspense>
  );
}
