<!DOCTYPE html>
<html lang="de">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login - LinkedIn Posts</title>
    <link rel="icon" type="image/png" href="/static/favicon.png">
    <link rel="stylesheet" href="/static/tailwind.css">
    <style>
        body { background-color: #3d4848; }
        .btn-primary { background-color: #ffc700; color: #2d3838; }
        .btn-primary:hover { background-color: #e6b300; }
        .card-bg { background-color: #4a5858; border-color: #5a6868; }
        .input-bg { background-color: #3d4848; border-color: #5a6868; }
        .input-bg:focus { border-color: #ffc700; outline: none; }
    </style>
</head>
<body class="text-gray-100 min-h-screen flex items-center justify-center">
    <div class="w-full max-w-md">
        <div class="card-bg rounded-xl border p-8">
            <div class="text-center mb-8">
                <img src="/static/logo.png" alt="Logo" class="h-16 w-auto mx-auto mb-4">
                <p class="text-sm text-brand-highlight font-medium mb-2">Onyva</p>
                <h1 class="text-2xl font-bold text-white mb-2">LinkedIn Workflow</h1>
                <p class="text-gray-400">Admin Panel</p>
                <p class="text-xs text-gray-500 mt-3">
                    Interner Onyva-Zugang. Kein offizielles Angebot von LinkedIn.
                </p>
            </div>

            {% if error %}
            <div class="bg-red-900/50 border border-red-500 text-red-200 px-4 py-3 rounded-lg mb-6">
                Falsches Passwort. Bitte versuche es erneut.
            </div>
            {% endif %}

            <form method="POST" action="/admin/login" class="space-y-6">
                <div>
                    <label class="block text-sm font-medium text-gray-300 mb-2">Passwort</label>
                    <input
                        type="password"
                        name="password"
                        required
                        autofocus
                        class="w-full input-bg border rounded-lg px-4 py-3 text-white"
                        placeholder="Passwort eingeben..."
                    >
                </div>

                <button
                    type="submit"
                    class="w-full btn-primary font-medium py-3 rounded-lg transition-colors"
                >
                    Anmelden
                </button>
            </form>
        </div>
        <div class="mt-6 text-center text-xs text-gray-500">
            Betreiber: Onyva |
            <a href="/privacy-policy" class="hover:text-gray-300">Datenschutz</a> |
            <a href="mailto:team@onyva.de" class="hover:text-gray-300">team@onyva.de</a>
        </div>
    </div>
</body>
</html>
