{% extends 'base.html' %}
{% load i18n %}

{% block title %}{% trans "New Password" %} | masarX{% endblock %}

{% block content %}
<section class="py-5 bg-light" style="min-height: 80vh; display: flex; align-items: center;">
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-6 col-lg-5">
                <div class="card shadow-sm border-0 rounded-4">
                    <div class="card-body p-4 p-md-5">
                        <div class="text-center mb-4">
                            <h3 class="fw-bold">{% trans "Set New Password" %}</h3>
                            <p class="text-muted">{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p>
                        </div>

                        <form method="post">
                            {% csrf_token %}
                            {% for field in form %}
                                <div class="mb-3">
                                    <label class="form-label fw-medium">{{ field.label }}</label>
                                    {{ field }}
                                    {% if field.help_text %}
                                        <div class="form-text small">{{ field.help_text }}</div>
                                    {% endif %}
                                    {% if field.errors %}
                                        <div class="text-danger small mt-1">{{ field.errors }}</div>
                                    {% endif %}
                                </div>
                            {% endfor %}
                            <button type="submit" class="btn btn-masarx-primary w-100 py-2 mt-3 fw-bold">{% trans "Change Password" %}</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<style>
    .form-control {
        border-radius: 8px;
        padding: 12px 15px;
        border-color: #dee2e6;
    }
    .form-control:focus {
        border-color: var(--accent-orange);
        box-shadow: 0 0 0 0.25rem rgba(255, 126, 21, 0.15);
    }
    .btn-masarx-primary {
        background-color: var(--accent-orange);
        border-color: var(--accent-orange);
        color: white;
        border-radius: 8px;
        transition: all 0.3s;
    }
    .btn-masarx-primary:hover {
        background-color: #e66a00;
        border-color: #e66a00;
        color: white;
    }
</style>
{% endblock %}
