<!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>Login - 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="toggleHistory()">
            <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 }}/report" class="menu-item">Report Issue</a>
                    <a href="{{ prefix }}/register" class="menu-item">Register</a>
                </div>
            </div>
        </div>
    </header>

    <main class="auth-main">
        <div class="auth-container">
            <h2 class="auth-title">Welcome Back</h2>
            
            <form class="auth-form" method="POST" action="/login">
                <div class="input-group">
                    <input type="text" name="username" placeholder="Username" required>
                    <input type="password" name="password" placeholder="Password" required>
                </div>
                <button type="submit" class="primary-button">Login</button>
                
                <div class="oauth-divider">
                    <span>or continue with</span>
                </div>
                
                <button type="button" class="google-login" onclick="loginWithGoogle()">
                    <img src="{{ prefix }}/{{ url_for('static', filename='icons/google.png') }}" alt="Google">
                    Continue with Google
                </button>
            </form>

            <div class="auth-links">
                <a href="{{ prefix }}/register">Create new account</a>
                <a href="{{ prefix }}/forgot-password">Forgot password?</a>
            </div>
        </div>
    </main>

</body>
</html>