{% extends 'base.html' %}

{% block title %}Wachtwoord wijzigen{% endblock %}

{% block content %}

<div class="space-y-8 max-w-6xl mx-auto px-4">
  <div class="max-w-md mx-auto">
    <h2 class="text-3xl font-semibold mb-6">Wijzig Wachtwoord</h2>

    {% if msg %}
      <div class="bg-blue-100 border border-blue-400 text-blue-700 px-6 py-4 rounded mb-6">{{ msg }}</div>
    {% endif %}

    <form method="post" class="space-y-6">
      <div>
        <label for="current_password" class="block mb-3 font-semibold text-gray-700">Huidig wachtwoord</label>
        <input type="password" id="current_password" name="current_password" required class="w-full rounded-md border border-gray-300 p-4 text-lg placeholder-gray-400 shadow-sm focus:border-blue-600 focus:ring focus:ring-blue-300 focus:ring-opacity-50 transition">
      </div>

      <div>
        <label for="new_password" class="block mb-3 font-semibold text-gray-700">Nieuw wachtwoord</label>
        <input type="password" id="new_password" name="new_password" required class="w-full rounded-md border border-gray-300 p-4 text-lg placeholder-gray-400 shadow-sm focus:border-blue-600 focus:ring focus:ring-blue-300 focus:ring-opacity-50 transition">
      </div>

      <div>
        <label for="confirm_password" class="block mb-3 font-semibold text-gray-700">Bevestig nieuw wachtwoord</label>
        <input type="password" id="confirm_password" name="confirm_password" required class="w-full rounded-md border border-gray-300 p-4 text-lg placeholder-gray-400 shadow-sm focus:border-blue-600 focus:ring focus:ring-blue-300 focus:ring-opacity-50 transition">
      </div>

      <button type="submit" class="bg-[#f7d91a] text-black w-full rounded-md py-4 font-semibold shadow hover:bg-yellow-300 transition">Opslaan</button>
    </form>
  </div>
</div>

{% endblock %}
