<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="description" content="">
    <meta name="author" content="">

    <link rel="shortcut icon" href="#" />

    <title>RestAPI - Infosys (InfoWS v3)</title>

    <!-- Bootstrap core CSS -->
    <link href="/static/css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="/static/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css">

    <!-- Bootstrap core JavaScript -->
    <script src="/static/js/jquery-3.5.1.slim.min.js"></script>
    <script src="/static/js/popper.min.js"></script>
    <script src="/static/js/bootstrap.bundle.min.js"></script>
</head>

<body>
    {% include 'header/header.html' %}

    <div class="row" style="padding-top: 120px;margin: auto;width: 99%;height:calc(100vh - 20px);">
        <div class="col-12">
            <form action="/login" method="post" style="max-width: 330px;margin-left: auto; margin-right: auto;">
                <label for="inputUser" class="sr-only">Email address</label>
                <input type="text" id="inputUser" name="inputUser" class="form-control m-1" placeholder="Username"
                    required autofocus>
                <label for="inputPassword" class="sr-only">Password</label>
                <input type="password" id="inputPassword" name="inputPassword" class="form-control m-1"
                    placeholder="Password" required>
                <button class="btn btn-sm btn-primary btn-block float-right m-1" style="max-width: 100px;"
                    type="submit">Log in</button>
            </form>
            {% if error %}
            <div class="alert alert-danger alert-dismissible fade show mt-5" role="alert" style="max-width: 530px;margin-left: auto; margin-right: auto;">
                Wrong username or password!
                <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            {% endif %}
        </div>
    </div>

</body>

</html>