{% extends 'core/mobile/base_mobile.html' %}
{% block content %}
<div class="p-3">
    <div class="text-center mb-4 mt-5">
        <h3 class="fw-bold">欢迎回来</h3>
        <p class="text-secondary small">登录您的 {{ site_settings.site_name|default:"BitCrypto" }} 账户</p>
    </div>

    <form method="POST" class="glass-card p-4">
        {% csrf_token %}
        <div class="mb-3">
            <label class="form-label small text-secondary">用户名</label>
            <input type="text" name="username" class="form-control" required placeholder="请输入用户名">
        </div>
        <div class="mb-4">
            <label class="form-label small text-secondary">登录密码</label>
            <input type="password" name="password" class="form-control" required placeholder="请输入密码">
        </div>
        <button type="submit" class="btn btn-warning w-100 fw-bold py-2 mb-3">立即登录</button>
        <div class="text-center small">
            <span class="text-secondary">还没有账户？</span>
            <a href="{% url 'core:register' %}" class="text-warning text-decoration-none">立即注册</a>
        </div>
    </form>
</div>
{% endblock %}