<?php declare(strict_types=1); ?>

<div class="container-fluid text-center">

<div class="row">
    <div class="col"><h1><?php echo TFISH_LOGIN; ?></h1></div>
</div>

<form class="form-horizontal" action="<?php echo TFISH_URL . 'login/'; ?>" method="post" role="form" accept-charset="UTF-8"></form>

<div class="row justify-content-center">
        
    <!-- Password -->
    <div class="col-md-3 form-group input-group">
        <input type="password" class="form-control is-valid" name="password" id="password" placeholder="<?php echo TFISH_PASSWORD; ?>" required>
        <div class="input-group-append">
            <span class="input-group-text" id="password-addon"><i class="fas fa-lock"></i></span>
        </div>
    </div>

</div>

<div class="row justify-content-center">

    <!-- Yubikey -->
    <div class="col-md-3 form-group input-group">
        <input type="password" class="form-control is-valid" name="yubikeyOtp" id="yubikeyOtp" placeholder="<?php echo TFISH_YUBIKEY; ?>" required>
        <div class="input-group-append">
            <span class="input-group-text" id="password-addon"><i class="fas fa-key"></i></span>
        </div>
    </div>

</div>

<div class="row justify-content-center">

    <!-- Submit -->
    <div class="form-group col-md-3">
        <input type="hidden" name="token" value="<?php echo xss($_SESSION['token']); ?>" />
        <input type="hidden" name="action" value="login" />
        <button type="submit" class="btn btn-primary float-left"><?php echo TFISH_SUBMIT ?></button>
    </div>

</div>

</form>

<!-- /.container -->
</div>
