<!DOCTYPE html>
<html lang="en" data-bs-theme="dark">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Jellyplist Login</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
    <link rel="icon" type="image/x-icon" href="/static/images/favicon.ico">
</head>

<body>
    <section class="vh-100" >
        <div class="container py-5 h-100">
            <div class="row d-flex justify-content-center align-items-center h-100">
                <div class="col-12 col-md-8 col-lg-6 col-xl-5">
                    <div class="card shadow " >
                        <div class="card-header logo">
                            <img src="/static/images/logo_large.png" alt="Logo">

                        </div>
                        <div class="card-body p-5 text-center">
                            <h4 class="mb-5">Login using your Jellyfin Credentials</h4>
                            <form method="POST" action="/login">
                                <div class="mb-4">
                                    <label for="username" class="form-label">Username</label>
                                    <input type="text" class="form-control form-control-lg" id="username" name="username" required>
                                </div>
                                <div class="mb-4">
                                    <label for="password" class="form-label">Password</label>
                                    <input type="password" class="form-control form-control-lg" id="password" name="password" required>
                                </div>
                                <button type="submit" class="btn btn-primary btn-lg">Login</button>
                                
                            </form>
                            {% with messages = get_flashed_messages(with_categories=true) %}
                    {% if messages %}
                    <div class="alert alert-danger mt-3" role="alert">
                        {{ messages[0][1] }}
                    </div>
                    {% endif %}
                    {% endwith %}
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
    </section>
    
    
</body>

</html>