@{
    ViewData["Title"] = "Forgotpassword3";
}
@section Styles {
    <link rel="stylesheet" href="/css/auth3.css" asp-append-version="true" />
}


<section class="min-h-screen flex bg-gradient-to-br from-blue-700 via-blue-600 to-blue-500" x-data="{ loading: false, notification: { show: false, message: '' }, errors: {} }">
    <div class="hidden lg:flex w-1/2 items-center justify-center p-12">
        <div class="max-w-md">
            <div class="flex items-center gap-3 mb-8">
                <div class="w-14 h-14 bg-white/20 backdrop-blur-sm rounded-xl flex items-center justify-center">
                    <svg class="w-8 h-8 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"/></svg>
                </div>
                <div>
                    <div class="text-2xl font-bold text-white">EnterpriseKit</div>
                    <div class="text-sm text-blue-100">Enterprise Application Platform</div>
                </div>
            </div>
            <h2 class="text-3xl font-bold text-white leading-tight mb-4">Reset Your<br/>Account Password</h2>
            <p class="text-blue-100 leading-relaxed mb-8">Enter your registered email address and we'll send you a secure link to reset your password. The link will expire in 24 hours for your security.</p>
            <div class="space-y-4">
                <div class="flex items-start gap-3">
                    <div class="w-5 h-5 rounded check-icon flex items-center justify-center flex-shrink-0 mt-0.5"><svg class="w-3 h-3 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="3"><path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"/></svg></div>
                    <div><span class="font-semibold text-white text-sm">Quick & Secure</span><p class="text-xs text-blue-200 mt-0.5">Reset your password in just a few minutes</p></div>
                </div>
                <div class="flex items-start gap-3">
                    <div class="w-5 h-5 rounded check-icon flex items-center justify-center flex-shrink-0 mt-0.5"><svg class="w-3 h-3 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="3"><path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"/></svg></div>
                    <div><span class="font-semibold text-white text-sm">Enterprise Security</span><p class="text-xs text-blue-200 mt-0.5">End-to-end encrypted password reset process</p></div>
                </div>
                <div class="flex items-start gap-3">
                    <div class="w-5 h-5 rounded check-icon flex items-center justify-center flex-shrink-0 mt-0.5"><svg class="w-3 h-3 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="3"><path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"/></svg></div>
                    <div><span class="font-semibold text-white text-sm">24/7 Support</span><p class="text-xs text-blue-200 mt-0.5">Contact our support team if you need help</p></div>
                </div>
            </div>
            <div class="mt-10 p-4 bg-white/10 backdrop-blur-sm border border-white/20 rounded-xl">
                <div class="flex items-center gap-3">
                    <div class="w-10 h-10 rounded-full bg-white/20 flex items-center justify-center flex-shrink-0">
                        <svg class="w-5 h-5 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"/></svg>
                    </div>
                    <div>
                        <div class="text-sm font-semibold text-white">Your Data is Safe</div>
                        <div class="text-xs text-blue-200">All password resets are encrypted and verified</div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="w-full lg:w-1/2 flex items-center justify-center p-6 sm:p-10 lg:p-16">
        <div class="w-full max-w-md">
            <div class="mb-8">
                <h2 class="text-2xl font-bold text-white">Forgot Password?</h2>
                <p class="text-blue-100 text-sm mt-1">No worries. Enter your email and we'll send you a reset link.</p>
            </div>

            <form @@submit.prevent="
                errors = {};
                if (!document.getElementById('email').value.trim()) { errors.email = true; return; }
                loading = true;
                setTimeout(() => {
                    loading = false;
                    notification = { show: true, message: 'Reset link sent! A confirmation email has been sent to your email address.' };
                    setTimeout(() => { notification.show = false; }, 5000);
                }, 3000);
            ">
                <div class="space-y-4">
                    <div>
                        <label class="form-label" for="email">Email Address</label>
                        <input class="input-field" id="email" type="email" placeholder="you@@company.com" required :class="{ 'error': errors.email }">
                    </div>
                    <button class="btn-primary" type="submit" :disabled="loading">
                        <template x-if="!loading">
                            <span class="flex items-center gap-2">
                                <svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M21.75 9v.906a2.25 2.25 0 01-1.183 1.981l-6.478 3.488M2.25 9v.906a2.25 2.25 0 001.183 1.981l6.478 3.488m8.839 2.51l-4.66-2.51m0 0l-1.023-.55a2.25 2.25 0 00-2.134 0l-1.022.55m0 0l-4.661 2.51m16.5 1.615a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V8.844a2.25 2.25 0 011.183-1.98l7.5-4.04a2.25 2.25 0 012.134 0l7.5 4.04a2.25 2.25 0 011.183 1.98V19.5z"/></svg>
                                Send Reset Link
                            </span>
                        </template>
                        <template x-if="loading">
                            <span class="flex items-center gap-2">
                                <svg class="animate-spin w-4 h-4" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"/><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"/></svg>
                                Sending reset link...
                            </span>
                        </template>
                    </button>
                </div>
            </form>

            <div class="mt-6 text-center">
                <a class="auth-link inline-flex items-center gap-1.5" href="login3.html">
                    <svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M10.5 19.5l-7.5-7.5 7.5-7.5"/><path stroke-linecap="round" stroke-linejoin="round" d="M3 12h18"/></svg>
                    Back to Sign In
                </a>
            </div>
        </div>
    </div>

<div class="fixed top-4 right-4 z-[200] transition-all duration-300"
     x-show="notification.show"
     x-transition:enter="transform ease-out duration-300"
     x-transition:enter-start="translate-x-full opacity-0"
     x-transition:enter-end="translate-x-0 opacity-100"
     x-transition:leave="transform ease-in duration-200"
     x-transition:leave-start="translate-x-0 opacity-100"
     x-transition:leave-end="translate-x-full opacity-0"
     x-cloak>
    <div class="flex items-center gap-3 bg-white border border-blue-100 shadow-lg rounded-xl px-5 py-4 min-w-[320px]">
        <div class="w-8 h-8 rounded-full bg-green-100 flex items-center justify-center flex-shrink-0">
            <svg class="w-4 h-4 text-green-600" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"/></svg>
        </div>
        <div class="flex-1">
            <p class="text-sm font-semibold text-gray-900">Success</p>
            <p class="text-xs text-gray-500" x-text="notification.message"></p>
        </div>
        <button class="text-gray-400 hover:text-gray-600" @@click="notification.show = false">
            <svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"/></svg>
        </button>
    </div>
</div>
</section>