"use client"; import Image from 'next/image'; import React, { useState, useEffect } from "react"; import { useGoogleLogin } from "@react-oauth/google"; import { useTheme } from 'next-themes'; import { Sun, Moon } from 'lucide-react'; // Optional: install lucide-react for clean icons export default function AppleStyleAuth() { const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); const { theme, setTheme } = useTheme(); const [mounted, setMounted] = useState(false); // Avoid hydration mismatch by waiting for mount useEffect(() => { setMounted(true); }, []); const googleLogin = useGoogleLogin({ onSuccess: (res) => console.log("Google Success", res), onError: () => console.log("Google Failed"), }); if (!mounted) return null; return (
{/* THEME TOGGLE BUTTON */}
{/* 1. LOGOTIPO */}
logo

Iniciar sessão

Usa a tua conta TVone.

{/* 2. FORMULÁRIO */}
setEmail(e.target.value)} className="w-full rounded-2xl border border-neutral-200 bg-white/50 px-5 py-4 text-sm outline-none transition-all focus:border-blue-500 focus:bg-white focus:text-black focus:ring-4 focus:ring-blue-500/10 dark:border-neutral-800 dark:bg-neutral-900 dark:text-white" /> setPassword(e.target.value)} className="w-full rounded-2xl border border-neutral-200 bg-white/50 px-5 py-4 text-sm outline-none transition-all focus:border-blue-500 focus:bg-white focus:text-black focus:ring-4 focus:ring-blue-500/10 dark:border-neutral-800 dark:bg-neutral-900 dark:text-white" />
{/* 3. DIVISOR */}
ou
{/* 4. BOTÃO GOOGLE */} {/* 5. LINKS */}
Esqueceste-te da palavra-passe?

Não tens conta?{" "} Cria uma agora.

); }