<section class="bg-cream py-20"><div class="mx-auto max-w-lg px-5"><div class="rounded-[2rem] border border-slate-100 bg-white p-8 shadow-soft"><h1 class="font-display text-3xl font-extrabold">Choose a new password</h1><p class="mt-2 text-sm text-slate-500">Use at least 10 characters and avoid reusing passwords from other services.</p><?php if($errors=session()->getFlashdata('errors')): ?><div class="mt-5 rounded-xl bg-rose-50 p-4 text-sm text-rose-700"><?php foreach($errors as $e): ?><div><?= esc($e) ?></div><?php endforeach; ?></div><?php endif; ?><form action="/reset-password/<?= esc($token) ?>" method="post" class="mt-7 space-y-4"><?= csrf_field() ?><input name="password" type="password" required minlength="10" class="w-full rounded-xl border border-slate-200 px-4 py-3 text-sm" placeholder="New password"><input name="password_confirm" type="password" required class="w-full rounded-xl border border-slate-200 px-4 py-3 text-sm" placeholder="Confirm new password"><button class="w-full rounded-xl bg-teal-600 px-5 py-3 text-sm font-extrabold text-white">Update password</button></form></div></div></section>
