{% extends "ui/templates/base/layout.html" %}
{% block content %}
<div class="mx-auto max-w-2xl rounded-2xl border bg-white p-6 shadow-soft">
  <h1 class="text-2xl font-semibold">Confirm Password Change</h1>
  <p class="mt-1 text-sm text-slate-500">Enter the OTP sent to your registered email to complete the password change.</p>

  {% if flash %}
  <div class="mt-4 rounded-xl border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-900">
    {{ flash }}
  </div>
  {% endif %}

  <form method="post" class="mt-6 space-y-4">
    <input type="hidden" name="csrf_token" value="{{ csrf_token }}" />

    <label class="block">
      <span class="mb-2 block text-sm font-medium text-slate-700">OTP</span>
      <input type="text" name="otp" class="w-full rounded-xl border px-3 py-2" required />
    </label>

    <div class="flex gap-3 pt-2">
      <button type="submit" class="rounded-xl bg-slate-900 px-4 py-2 text-sm text-white">Confirm Change</button>
      <a href="/change-password" class="rounded-xl border px-4 py-2 text-sm">Back</a>
    </div>
  </form>
</div>
{% endblock %}