<!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>Create account form | Media CMS</title>
    <script src="js/jquery/jquery-3.7.1.min.js"></script>
    <script src="js/create_account.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">
            <!-- Create account form -->
            <h1>Create account</h1><hr>
            <label for="UserNameInputField">Username</label><br>
            <input type="text" id="UserNameInputField"><br>
            <label for="EmailInputField">Email</label><br>
            <input type="email" id="EmailInputField"><br>
            <label for="PasswordInputField">Password</label><br>
            <input type="password" id="PasswordInputField"><br>
            <label for="VerifyPasswordInputField">Verify password</label><br>
            <input type="password" id="VerifyPasswordInputField">
            <label class="checkboxField">
                <input type="checkbox" id="ShowPasswordBtn">Show passwords
            </label><br>
            <button id="EnterBtn">Enter</button><br><br>
            <details open>
                <!-- Form requirements list -->
                <summary>Requirements:</summary>
                <ul>
                    <li>You can use numbers and letter in your username!</li>
                    <li>Username must be 4-20 characters long!</li>
                    <li>Password must contain at least 1 lowercase and uppercase letter, number and symbol!</li>
                    <li>Password must be at least 8 characters long!</li>
                </ul>
            </details>
            <!-- Error output -->
            <p id="ErrorText" class="error-text"></p>
        </div>
        <footer>Page: create account</footer>
    </div>
</body>
</html>