{% extends 'base.html' %}

{% block title %}Reset Password - Referral Rewards{% endblock %}

{% block content %}
<div class="container py-5 mt-5">
    <div class="row justify-content-center">
        <div class="col-md-5">
            <div class="card border-0 shadow-lg p-4 p-md-5 rounded-4">
                <div class="text-center mb-4">
                    <h2 class="mb-3">Reset Password</h2>
                    <p class="text-muted">Enter your email address and we'll send you a link to reset your password.</p>
                </div>
                
                <form method="post">
                    {% csrf_token %}
                    {% if form.errors %}
                        <div class="alert alert-danger">
                            Please correct the errors below.
                        </div>
                    {% endif %}
                    
                    <div class="mb-4">
                        <label for="id_email" class="form-label fw-600">Email Address</label>
                        <input type="email" name="email" class="form-control" id="id_email" placeholder="Email address" required>
                        {% if form.email.errors %}
                            <div class="text-danger small mt-1">
                                {{ form.email.errors }}
                            </div>
                        {% endif %}
                    </div>
                    
                    <button type="submit" class="btn btn-primary w-100 py-3">Send Reset Link</button>
                </form>
                
                <div class="text-center mt-5">
                    <p class="text-muted mb-0"><a href="{% url 'login' %}" class="text-decoration-none fw-bold">Back to Login</a></p>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
