<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Navitrends — Login</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link href="https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Geist+Mono:wght@400;500&display=swap" rel="stylesheet">
    <style>
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        body {
            font-family: 'Syne', sans-serif;
            background: #07080c;
            display: flex; align-items: center; justify-content: center;
            min-height: 100vh; color: #eef1f8;
            -webkit-font-smoothing: antialiased;
        }
        body::before {
            content: ''; position: fixed; inset: 0; pointer-events: none;
            background:
                radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79,140,255,0.12), transparent 55%),
                radial-gradient(ellipse 50% 40% at 100% 80%, rgba(183,148,255,0.08), transparent 50%);
        }
        body::after {
            content: ''; position: fixed; inset: 0; pointer-events: none;
            background-image:
                linear-gradient(rgba(79,140,255,0.025) 1px, transparent 1px),
                linear-gradient(90deg, rgba(79,140,255,0.025) 1px, transparent 1px);
            background-size: 48px 48px;
        }
        .card {
            background: rgba(14,16,23,0.9);
            backdrop-filter: blur(24px);
            border: 1px solid #1a2030;
            border-radius: 22px;
            padding: 44px 40px;
            width: 400px;
            position: relative;
            box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.03);
            animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
        }
        @keyframes cardIn {
            from { opacity: 0; transform: translateY(16px) scale(0.98); }
            to   { opacity: 1; transform: translateY(0) scale(1); }
        }
        .card::before {
            content: ''; position: absolute; top: 0; left: 32px; right: 32px; height: 2px;
            background: linear-gradient(90deg, #4f8cff, #7eb3ff, #b794ff);
            border-radius: 0 0 4px 4px;
        }
        .brand { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
        .brand-mark {
            width: 42px; height: 42px;
            background: linear-gradient(135deg, #4f8cff, #6366f1);
            border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            font-family: 'Geist Mono', monospace; font-weight: 600; font-size: 13px; color: #fff;
            box-shadow: 0 4px 16px rgba(79,140,255,0.35);
        }
        .brand-name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
        .brand-sub  { font-size: 9px; color: #525d72; font-family: 'Geist Mono', monospace; letter-spacing: 0.14em; margin-top: 2px; }
        label { display: block; font-size: 10px; font-weight: 700; color: #8b95aa; letter-spacing: 0.12em; margin-bottom: 8px; }
        input[type="password"] {
            width: 100%; padding: 12px 16px; background: #141820;
            border: 1px solid #252d42; border-radius: 12px;
            font-size: 14px; font-family: 'Geist Mono', monospace;
            color: #eef1f8; letter-spacing: 0.08em; margin-bottom: 22px;
            transition: border-color 0.22s, box-shadow 0.22s;
        }
        input[type="password"]:focus {
            outline: none; border-color: #4f8cff;
            box-shadow: 0 0 0 3px rgba(79,140,255,0.15);
        }
        button {
            width: 100%; padding: 13px;
            background: linear-gradient(135deg, #4f8cff, #6366f1);
            color: #fff; border: none; border-radius: 12px;
            font-size: 14px; font-weight: 700;
            font-family: 'Syne', sans-serif; cursor: pointer;
            transition: filter 0.22s, transform 0.15s, box-shadow 0.22s;
            box-shadow: 0 4px 18px rgba(79,140,255,0.35);
        }
        button:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(79,140,255,0.45); }
        button:active { transform: translateY(0); }
        .error {
            color: #f05252; font-size: 12px; margin-bottom: 16px;
            padding: 10px 14px; background: rgba(240,82,82,0.08);
            border: 1px solid rgba(240,82,82,0.22); border-radius: 10px;
        }
    </style>
</head>
<body>
    <div class="card">
        <div class="brand">
            <div class="brand-mark">NV</div>
            <div>
                <div class="brand-name">Navitrends</div>
                <div class="brand-sub">OPS PLATFORM</div>
            </div>
        </div>
        {% if error %}<div class="error">⚠ {{ error }}</div>{% endif %}
        <form method="post">
            <label>ACCESS PASSWORD</label>
            <input type="password" name="password" placeholder="••••••••••" required autofocus>
            <button type="submit">Sign In →</button>
        </form>
    </div>
</body>
</html>
