'use client';
import IconMail from '@/components/icon/icon-mail';
import { useRouter } from 'next/navigation';
import React from 'react';

const ComponentsAuthResetPasswordForm = () => {
    const router = useRouter();

    const submitForm = (e: any) => {
        e.preventDefault();
        router.push('/');
    };
    return (
        <form className="space-y-5" onSubmit={submitForm}>
            <div>
                <label htmlFor="Email" className="dark:text-white">
                    Email
                </label>
                <div className="relative text-white-dark">
                    <input id="Email" type="email" placeholder="Enter Email" className="form-input ps-10 placeholder:text-white-dark" />
                    <span className="absolute start-4 top-1/2 -translate-y-1/2">
                        <IconMail fill={true} />
                    </span>
                </div>
            </div>
            <button type="submit" className="btn w-full border-0 uppercase shadow-[0_10px_20px_-10px_rgba(232,87,42,0.44)] disabled:cursor-not-allowed disabled:opacity-70 !mt-6 !mb-4 bg-[linear-gradient(135deg,#e8572a_0%,#0f2444_100%)] text-white hover:bg-[linear-gradient(135deg,#0f2444_0%,#e8572a_100%)]">
                RECOVER
            </button>
        </form>
    );
};

export default ComponentsAuthResetPasswordForm;
