{% extends "base.html" %}
{% load static %}

{% block title %}Login - KapiohoNet{% endblock %}

{% block content %}
<div class="login-container">
    <div class="login-box">
        <h2 class="text-center mb-4">KapiohoNet</h2>
        <p class="text-center text-secondary mb-4">Akses On-Demand</p>
        <form method="post">
            {% csrf_token %}
            <div class="mb-3">
                <label for="router_ip" class="form-label">Mikrotik IP (ZeroTier)</label>
                <input type="text" class="form-control" id="router_ip" name="router_ip" required>
            </div>
            <div class="mb-3">
                <label for="username" class="form-label">Username</label>
                <input type="text" class="form-control" id="username" name="username" required>
            </div>
            <div class="mb-3">
                <label for="password" class="form-label">Password</label>
                <input type="password" class="form-control" id="password" name="password" required>
            </div>
            <button type="submit" class="btn btn-primary w-100">Masuk</button>
            <div id="status-message" class="text-center mt-3">
                <!-- Status messages will appear here -->
            </div>
        </form>
    </div>
</div>
{% endblock %}