{% extends "common/base.html" %}

{% block title %}Change Password{% endblock %}

{% block content %}
<div class="container mx-auto px-4 py-8">
    <div class="max-w-md mx-auto">
        <div class="bg-white rounded-lg shadow p-6">
            <h2 class="text-2xl font-bold mb-6 text-center" style="color: var(--primary-color);">Change Password</h2> 
            <form method="POST" class="space-y-4">
                <input type="hidden" name="csrf_token" value="{{ csrf_token }}">
                
                <div>
                    <label for="current_password" class="block text-sm font-medium text-gray-700 mb-1">
                        <i class="fas fa-key me-2" style="color: var(--primary-color);"></i>Current Password
                    </label>
                    <input type="password" name="current_password" id="current_password" required
                           class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2"
                           style="--tw-ring-color: var(--primary-color);">
                </div>
                
                <div>
                    <label for="new_password" class="block text-sm font-medium text-gray-700 mb-1">
                        <i class="fas fa-lock me-2" style="color: var(--primary-color);"></i>New Password
                    </label>
                    <input type="password" name="new_password" id="new_password" required
                           class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2"
                           style="--tw-ring-color: var(--primary-color);">
                </div>
                
                <div>
                    <label for="confirm_password" class="block text-sm font-medium text-gray-700 mb-1">
                        <i class="fas fa-check-circle me-2" style="color: var(--primary-color);"></i>Confirm New Password
                    </label>
                    <input type="password" name="confirm_password" id="confirm_password" required
                           class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2"
                           style="--tw-ring-color: var(--primary-color);">
                </div>
                
                <button type="submit" class="w-full text-white px-6 py-2 rounded-lg transition duration-200"
                        style="background-color: var(--primary-color); border: 1px solid var(--primary-color);"
                        onmouseover="this.style.backgroundColor='var(--primary-light)'"
                        onmouseout="this.style.backgroundColor='var(--primary-color)'">
                    <i class="fas fa-save me-2"></i>Change Password
                </button>
            </form>
        </div>
    </div>
</div>
{% endblock %} 