{% extends 'security/base.html' %}

{% block title %}Login{% endblock %}
{% block content_title %}Sign In{% endblock %}
{% block content_description %}Enter your email and password to Sign In{% endblock %}
{% block content %}
    <form method="post" novalidate>
        {{ login_user_form.hidden_tag() }}
        <p>
            {{ login_user_form.email.label }}<br>
            {{ login_user_form.email(size=80) }}
        </p>
        <p>
            {{ login_user_form.password.label }}<br>
            {{ login_user_form.password(size=80) }}
        </p>

        <p>{{ login_user_form.submit() }}</p>
    </form>

    <!-- Debugging information -->
{#    <div style="margin-top: 20px; border: 1px solid #ccc; padding: 10px;">#}
{#        <h4>Debugging Information:</h4>#}
{#        <p>CSRF Token: {{ login_user_form.csrf_token.current_token }}</p>#}
{#        <p>Session ID: {{ session.sid }}</p>#}
{#    </div>#}
{% endblock %}
{% block content_footer %}
    Forgot your password? Contact your administrator to send you a password reset link.
{% endblock %}

{#{{ url_for_security('reset_password', token=reset_password_token) }}#}