<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <title>Wireguard Dashboard | Login</title>
        <link rel="icon" href="{{ url_for('static',filename='logo.png') }}"/>
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
        <link rel= "stylesheet" type= "text/css" href= "{{ url_for('static',filename='dashboard.css') }}">
    </head>
    <body>
        {% include "navbar.html" %}
        <div class="container-fluid">

            <main role="main" class="container login-container">
                <div class="login-box" style="margin: auto !important;">
                    <h3 class="text-center">Sign In</h3>

                    <form style="margin-left: auto !important; margin-right: auto !important; max-width: 500px;" action="/auth" method="post">
                        {% if message != ""%}
                            <div class="alert alert-danger" role="alert">
                                {{ message }}
                            </div>
                        {% endif %}
                        <div class="form-group">
                        <label for="username" class="text-left">User Name</label>
                        <input type="text" class="form-control" id="username" name="username" required>
                      </div>
                      <div class="form-group">
                        <label for="password" class="text-left">Password</label>
                        <input type="password" class="form-control" id="password" name="password" required>
                      </div>
                      <div class="form-group form-check">
                        <input type="checkbox" class="form-check-input" id="exampleCheck1">
                        <label class="form-check-label" for="exampleCheck1">Keep you login</label>
                      </div>
                      <button type="submit" class="btn btn-dark" style="width: 100%;">Sign In</button>
                    </form>
                </div>
            </main>
        </div>
    </body>
{% include "footer.html" %}
</html>