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

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-zoom=user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <title>Register - Be my Anchor</title>
    <link rel="stylesheet" href="{{ prefix }}/{{ url_for('static', filename='css/main.css') }}">
    <script src="{{ prefix }}/{{ url_for('static', filename='js/main.js') }}"></script>
</head>

<body>
    <header>
        <button class="history-button" onclick="handleHistoryButton()">
            <img src="{{ prefix }}/{{ url_for('static', filename='icons/clock.png') }}" alt="History">
        </button>

        <div class="branding">
            <img src="{{ prefix }}/{{ url_for('static', filename='logo.png') }}" alt="Logo" class="brand-logo">
            <span class="site-name">Be my Anchor</span>
        </div>

        <div class="nav-group">
            <div class="menu">
                <button class="menu-button" onclick="toggleMenu(event)">
                    <img src="{{ prefix }}/{{ url_for('static', filename='icons/people.png') }}" alt="Menu">
                </button>
                <div class="menu-dropdown" id="mainMenu">
                    <a href="{{ prefix }}/" class="menu-item">Home</a>
                    <a href="{{ prefix }}/login" class="menu-item">Login</a>
                    <a href="{{ prefix }}/report" class="menu-item">Report Issue</a>
                </div>
            </div>
        </div>
    </header>

    <main class="auth-main">
        <div class="auth-container">
            <h2 class="auth-title">Create Account</h2>

            <form class="auth-form" onsubmit="return validateRegistration(event)">
                <div class="input-group">
                    <input type="text" id="username" placeholder="Username" required>
                    <input type="email" id="email" placeholder="Email" required>
                    <input type="password" id="password" placeholder="Password" required>
                    <input type="password" id="confirmPassword" placeholder="Confirm Password" required>
                </div>

                <button type="submit" class="primary-button">Register</button>

                <div class="auth-links">
                    <span>Already have an account? <a href="{{ prefix }}/login">Login here</a></span>
                </div>
            </form>
        </div>
    </main>

</body>

</html>