<!--
  templateType: membership_reset_page
  isAvailableForNewContent: true
  label: Set New Password
  screenshotPath: ../../images/template-previews/membership-reset-password.png
-->
{% extends "../layouts/base-system.html" %}

{% block title %}Set New Password{% endblock %}
{% block description %}Create a new password for your account{% endblock %}

{% block page_class %}page-auth{% endblock %}

{% block icon %}
  <div class="system-icon icon-success">
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
      <path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/>
      <path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/>
    </svg>
  </div>
{% endblock %}

{% block page_title %}Set Your New Password{% endblock %}

{% block page_message %}
  {% if request.query_dict.invalid == "true" %}
    <div class="system-status error">
      × This reset link is invalid or has expired. Please request a new one.
    </div>
  {% else %}
    Choose a strong password to secure your account. We recommend using at least 8 characters.
  {% endif %}
{% endblock %}

{% block main_content %}
  <div class="system-form">
    {% password_reset "password_reset"
      password_label="New Password",
      password_confirm_label="Confirm New Password",
      submit_button_text="Save Password"
    %}
    
    <div class="system-section" style="font-size: 0.875rem; color: var(--color-text-secondary, #718096);">
      <h3 style="font-size: 1rem; margin-bottom: 0.5rem;">Password Requirements:</h3>
      <ul style="text-align: left; margin: 0; padding-left: 1.5rem;">
        <li>At least 8 characters long</li>
        <li>Contains uppercase and lowercase letters</li>
        <li>Contains at least one number</li>
        <li>Contains at least one special character</li>
      </ul>
    </div>
  </div>
{% endblock %}

{% block actions %}
  <a href="/membership/login" class="btn btn-secondary">Back to Sign In</a>
{% endblock %}

{% block footer_info %}
  {% if site_settings.membershipWebsiteAdmin %}
    <div class="system-contact">
      <p>Need help?</p>
      <p><a href="mailto:{{ site_settings.membershipWebsiteAdmin }}">Contact the administrator</a></p>
    </div>
  {% endif %}
{% endblock %}