{% extends 'core/mobile/base_mobile.html' %}
{% block content %}
<div class="p-3">
    <div class="mb-4">
        <a href="{% url 'core:profile' %}" class="text-decoration-none text-secondary small"><i class="bi bi-chevron-left"></i> 返回</a>
        <h4 class="fw-bold mt-2">实名认证</h4>
    </div>

    <div class="glass-card p-4 text-center">
        {% if account.kyc_status == 'UNVERIFIED' %}
            <i class="bi bi-shield-lock fs-1 text-secondary mb-3"></i>
            <h5 class="fw-bold">未认证</h5>
            <p class="text-secondary small mb-4">完成实名认证以提高账户额度和安全性</p>
            <form method="POST">
                {% csrf_token %}
                <div class="mb-3 text-start">
                    <label class="form-label small text-secondary">真实姓名</label>
                    <input type="text" class="form-control" required placeholder="请输入您的真实姓名">
                </div>
                <div class="mb-4 text-start">
                    <label class="form-label small text-secondary">身份证号 / 护照号</label>
                    <input type="text" class="form-control" required placeholder="请输入证件号码">
                </div>
                <button type="submit" class="btn btn-warning w-100 fw-bold">提交审核</button>
            </form>
        {% elif account.kyc_status == 'PENDING' %}
            <i class="bi bi-clock-history fs-1 text-warning mb-3"></i>
            <h5 class="fw-bold">审核中</h5>
            <p class="text-secondary small">您的认证申请正在处理中，请耐心等待。</p>
        {% elif account.kyc_status == 'VERIFIED' %}
            <i class="bi bi-patch-check-fill fs-1 text-success mb-3"></i>
            <h5 class="fw-bold">已认证</h5>
            <p class="text-secondary small">您的账户已通过实名认证。</p>
        {% endif %}
    </div>
</div>
{% endblock %}