'use client'

import { useRouter } from 'next/navigation'
import { useEffect } from 'react'

export function RedirectToRegister() {
  const router = useRouter()
  
  useEffect(() => {
    console.warn('🔄 RedirectToRegister - Перенаправление на /register')
    router.replace('/register')
  }, [router])
  
  return (
    <div className="min-h-screen bg-gradient-smooth flex items-center justify-center">
      <div className="text-center text-white">
        <div className="animate-spin rounded-full h-16 w-16 border-4 border-white border-t-transparent mx-auto mb-4"></div>
        <p className="text-white/80">Перенаправление на регистрацию...</p>
      </div>
    </div>
  )
}