<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="Created" content="2025-02-27">
    <meta name="Author" content="Kārlis Grīnvalds">
    <meta name="Last edited" content="2026-05-13">
    <meta name="Edited by" content="Kārlis Grīnvalds">
    <meta name="csrf-token" content="<?= csrf_hash() ?>">
    <meta name="csrf-name" content="<?= csrf_token() ?>">
    <title>Log in form | Media CMS</title>
    <script src="js/jquery/jquery-3.7.1.min.js"></script>
    <script src="js/log_in.js"></script>
    <script src="js/script.js"></script>
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/user_forms.css">
    <link rel="stylesheet" href="css/elements.css">
</head>
<body>
    <?php echo $BodyParts ?>
    <!-- Shows create account and log in links or log out link and welcome message for the user -->
    <div id="UserProfile" class="user-profile"></div>
    <!-- Page layout -->
    <div class="container">
        <header>
            <!-- Displays all the action that the user can do -->
            <div id="GoBackBar" class="action-bar"></div>
        </header>
        <div class="main">
            <h1>Log in</h1><hr>
            <!-- Log in form -->
            <label for="EmailInputField">Email</label><br>
            <input type="email" id="EmailInputField"><br>
            <label for="PasswordInputField">Password</label><br>
            <input type="password" id="PasswordInputField">
            <label class="checkboxField">
                <input type="checkbox" id="ShowPasswordBtn">Show password
            </label><br>
            <button id="EnterBtn">Enter</button>
            <a style="margin-left: 1rem" href="/create_account">I don't have an account</a>
            <!-- Error output -->
            <p id="ErrorText" class="error-text"></p>
        </div>
        <footer>Page: log in</footer>
    </div>
</body>
</html>