{% extends "base.html" %}

{% block content %}
<div class="row justify-content-center">
    <div class="col-md-6">
        <h1 class="text-center mb-4">{{ 'Admin Login' if admin else 'Login' }}</h1>
        <form method="POST" action="{{ url_for('admin_login' if admin else 'login') }}">
            <div class="mb-3">
                <label for="username" class="form-label">Username:</label>
                <input type="text" id="username" name="username" class="form-control" required>
            </div>
            <div class="mb-3">
                <label for="password" class="form-label">Password:</label>
                <input type="password" id="password" name="password" class="form-control" required>
            </div>
            <button type="submit" class="btn btn-primary w-100">Login</button>
        </form>
        {% if not admin %}
        <p class="text-center mt-3">
            Don't have an account? <a href="{{ url_for('request_account') }}">Request one here</a>.
        </p>
        {% endif %}
    </div>
</div>
{% endblock %}
{% block footer %}
  {{ super() }}  <!-- Esto conserva el contenido original del footer definido en base.html -->
{% endblock %}
