{% extends "tienda/base.html" %}
{% load static %}

{% block content %}
<div class="row justify-content-center mt-5">
  <div class="col-md-6 col-lg-4">
    <div class="card">
      <div class="card-header">
        <h3 class="text-center mb-0">Recuperar contraseña</h3>
      </div>
      <div class="card-body">
        <form method="post" action="{% url 'reset_password_phase2' code %}">
          {% csrf_token %}
          
          <div class="mb-3">
            <label for="password" class="form-label">Contraseña</label>
            <input type="password" class="form-control" id="password" name="password" required>
          </div>

          <div class="mb-3">
            <label for="verify_password" class="form-label">Verificar contraseña</label>
            <input type="password" class="form-control" id="verify_password" name="verify_password" required>
          </div>
          
          <div class="d-grid gap-2">
            <button type="submit" class="btn btn-primary">Recuperar contraseña</button>
          </div>
          
          <hr class="my-3">
          
          <div class="text-center">
            <p class="mb-0">¿No tienes cuenta? <a href="{% url 'register' %}">Regístrate aquí</a></p>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
{% endblock %}
