@extends('layouts.app')

@section('title', 'Forgot Password – MotoSolution Bangladesh')

@section('content')
<div class="min-h-[70vh] flex items-center justify-center py-12 px-4 bg-[#0B0F19]">
    <div class="max-w-md w-full space-y-6 bg-[#111827] border border-white/10 p-8 rounded-2xl shadow-2xl">
        <div class="text-center">
            <h2 class="text-2xl font-bold text-white font-heading">Reset Password</h2>
            <p class="mt-1 text-xs text-slate-400">Enter your registered email address to receive password reset link</p>
        </div>

        @if(session('status'))
            <div class="bg-emerald-500/10 border border-emerald-500/20 text-emerald-400 text-xs p-3 rounded-xl">
                {{ session('status') }}
            </div>
        @endif

        <form method="POST" action="{{ route('password.email') }}" class="space-y-4">
            @csrf
            <div>
                <label class="block text-xs font-semibold text-slate-300 uppercase tracking-wider mb-1">Email Address</label>
                <input name="email" type="email" required placeholder="your.name@example.com"
                    class="w-full px-4 py-2.5 bg-black/40 border border-white/10 rounded-xl text-white placeholder-slate-500 focus:outline-none focus:border-red-500 text-sm">
            </div>

            <button type="submit" class="w-full py-3 px-4 bg-red-600 hover:bg-red-700 text-white text-sm font-bold rounded-xl transition">
                Send Reset Link
            </button>
        </form>

        <p class="text-center text-xs text-slate-400">
            Remembered your password? 
            <a href="{{ route('login') }}" class="text-red-400 font-bold hover:underline">Return to Login</a>
        </p>
    </div>
</div>
@endsection
