<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login - f-buzz.com</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://f-buzz.com/css/style.css">
</head>
<body class="auth-page">
    <div class="auth-card">
        <div class="auth-header">
            <div class="auth-logo">
                <i class="fas fa-link"></i>
            </div>
            <h1 class="auth-title">Welcome Back</h1>
            <p class="auth-subtitle">Sign in to f-buzz.com</p>
        </div>

                
        
        <form action="/login" method="POST">
            <div class="md-input-group">
                <label class="md-input-label" for="email">Email Address</label>
                <input type="email" 
                       id="email" 
                       name="email" 
                       class="md-input" 
                       placeholder="Enter your email"
                       required
                       value="">
            </div>

            <div class="md-input-group">
                <label class="md-input-label" for="password">Password</label>
                <div class="password-field">
                    <input type="password" 
                           id="password" 
                           name="password" 
                           class="md-input password-input" 
                           placeholder="Enter your password"
                           autocomplete="current-password"
                           required>
                    <button type="button" class="password-toggle" id="passwordToggle" aria-label="Show password" aria-pressed="false">
                        <i class="fas fa-eye" aria-hidden="true"></i>
                    </button>
                </div>
            </div>

            <div class="md-input-group remember-me-group">
                <label class="remember-switch" for="remember_me">
                    <input type="checkbox" id="remember_me" name="remember_me" value="1" >
                    <span class="remember-slider" aria-hidden="true"></span>
                    <span class="remember-label">Remember me</span>
                </label>
            </div>

            <button type="submit" class="btn btn-primary btn-block btn-lg">
                <i class="fas fa-sign-in-alt"></i> Sign In
            </button>
        </form>

        <div class="auth-footer">
                            <p class="mb-0 text-muted">Create account is currently disabled.</p>
                    </div>
    </div>

    <script>
        document.getElementById('passwordToggle')?.addEventListener('click', function () {
            const passwordInput = document.getElementById('password');
            const icon = this.querySelector('i');
            const isHidden = passwordInput.type === 'password';

            passwordInput.type = isHidden ? 'text' : 'password';
            this.setAttribute('aria-label', isHidden ? 'Hide password' : 'Show password');
            this.setAttribute('aria-pressed', isHidden ? 'true' : 'false');
            icon.classList.toggle('fa-eye', !isHidden);
            icon.classList.toggle('fa-eye-slash', isHidden);
        });
    </script>
</body>
</html>
