<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="robots" content="noindex, nofollow, noarchive, nosnippet" />
    <?php
        $siteSettings = \App\Models\GeneralSetting::getContent();
        $siteLogo = $siteSettings['site']['logo'] ?? null;
        $logoUrl = $siteLogo
            ? ((str_starts_with($siteLogo, 'http://') || str_starts_with($siteLogo, 'https://'))
                ? $siteLogo
                : asset('storage/' . ltrim($siteLogo, '/')))
            : null;
    ?>
    <title>Forgot Password - <?php echo e(config('app.name')); ?></title>
    <?php echo app('Illuminate\Foundation\Vite')(['resources/css/app.css', 'resources/js/app.js']); ?>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet" />
    <style>body { font-family: 'Inter', sans-serif; }</style>
</head>
<body class="min-h-screen bg-gradient-to-br from-blue-900 via-blue-800 to-slate-950 flex items-center justify-center p-4">

<div class="w-full max-w-lg">
    <div class="text-center mb-8">
        <div class="inline-flex items-center justify-center w-16 h-16 bg-white rounded-2xl shadow-lg mb-4">
            <?php if($logoUrl): ?>
                <img src="<?php echo e($logoUrl); ?>" alt="<?php echo e(config('app.name')); ?> logo" class="max-h-10 w-auto object-contain" />
            <?php else: ?>
                <span class="text-blue-900 font-bold text-2xl">G</span>
            <?php endif; ?>
        </div>
        <h1 class="text-2xl font-bold text-white">GPS Migration</h1>
        <p class="text-blue-200 text-sm mt-1">Reset your password securely</p>
    </div>

    <div class="bg-white rounded-[28px] shadow-2xl overflow-hidden">
        <div class="px-8 pt-8 pb-6 border-b border-blue-50 bg-gradient-to-r from-white to-blue-50/80">
            <span class="inline-flex items-center rounded-full bg-blue-100 px-3 py-1 text-[11px] font-semibold uppercase tracking-[0.24em] text-blue-700">
                Account Recovery
            </span>
            <h2 class="mt-4 text-2xl font-bold text-slate-900">Forgot your password?</h2>
            <p class="mt-2 text-sm leading-6 text-slate-500">
                Enter your email address and we will send you a password reset link so you can choose a new password.
            </p>
        </div>

        <div class="p-8">
            <?php if(session('status')): ?>
                <div class="mb-5 rounded-xl border border-green-200 bg-green-50 px-4 py-3 text-sm text-green-700">
                    <?php echo e(session('status')); ?>

                </div>
            <?php endif; ?>

            <?php if($errors->any()): ?>
                <div class="mb-5 rounded-xl border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700">
                    <ul class="space-y-1">
                        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li><?php echo e($error); ?></li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </ul>
                </div>
            <?php endif; ?>

            <form method="POST" action="<?php echo e(route('password.email')); ?>" class="space-y-5">
                <?php echo csrf_field(); ?>

                <div>
                    <label for="email" class="block text-sm font-medium text-gray-700 mb-1.5">Email address</label>
                    <input
                        id="email"
                        type="email"
                        name="email"
                        value="<?php echo e(old('email')); ?>"
                        required
                        autofocus
                        autocomplete="username"
                        class="w-full px-4 py-3 rounded-xl border border-gray-300 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> border-red-400 <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                        placeholder="name@example.com"
                    />
                    <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <p class="mt-1.5 text-xs text-red-600"><?php echo e($message); ?></p>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                </div>

                <?php echo $__env->make('partials.captcha-widget', ['form' => 'password_reset', 'wrapperClass' => ''], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

                <button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-semibold py-3 rounded-xl text-sm transition shadow-sm">
                    Email Password Reset Link
                </button>

                <a href="<?php echo e(route('login')); ?>"
                   class="block w-full text-center border border-gray-200 hover:bg-gray-50 text-gray-700 font-semibold py-3 rounded-xl text-sm transition">
                    Back to Sign In
                </a>
            </form>
        </div>
    </div>

    <p class="text-center text-blue-200 text-xs mt-6">
        &copy; <?php echo e(date('Y')); ?> <?php echo e(config('app.name')); ?>. All rights reserved.
    </p>
</div>

<?php echo $__env->make('partials.captcha-assets', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
</body>
</html>
<?php /**PATH C:\xampp\htdocs\gps-migration\resources\views\auth\forgot-password.blade.php ENDPATH**/ ?>