<!doctype html>
<html lang="en" data-bs-theme="dark">
<head>
    <!--[if IE 6]>
      © COPYRIGHT 2026 nexium.fit
      PAGE GENERATED AT : {{ datetime_utcnow() }} UTC
    <![endif]-->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" href="/static/img/NEXIUM.ico" type="image/x-icon"/>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
    <link href="https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
    <title>Maintenance - NEXIUM</title>
    <style>
        body {
            font-family: 'Exo 2', sans-serif;
            background: radial-gradient(circle at center, #131324 0%, #080811 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            color: #e2e8f0;
            overflow: hidden;
            position: relative;
        }

        .glow-circle {
            position: absolute;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0,0,0,0) 70%);
            width: 600px;
            height: 600px;
            z-index: 1;
        }
        .glow-circle-1 {
            top: -200px;
            left: -200px;
        }
        .glow-circle-2 {
            bottom: -200px;
            right: -200px;
        }

        .maintenance-card {
            background: rgba(22, 22, 38, 0.55);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 24px;
            padding: 3.5rem 2.5rem;
            width: 100%;
            max-width: 480px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6),
                        inset 0 1px 0 rgba(255, 255, 255, 0.05);
            z-index: 10;
            text-align: center;
            transform: translateY(0);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }
        
        .maintenance-card:hover {
            box-shadow: 0 30px 60px rgba(139, 92, 246, 0.18),
                        0 20px 40px rgba(0, 0, 0, 0.7),
                        inset 0 1px 0 rgba(255, 255, 255, 0.1);
            border-color: rgba(139, 92, 246, 0.35);
        }

        .icon-container {
            width: 84px;
            height: 84px;
            background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
            border-radius: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.8rem auto;
            box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
            animation: pulse 3s infinite alternate cubic-bezier(0.4, 0, 0.6, 1);
        }

        .icon-container i {
            font-size: 2.4rem;
            color: #ffffff;
        }

        @keyframes pulse {
            0% { transform: scale(1); box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3); }
            100% { transform: scale(1.06); box-shadow: 0 16px 36px rgba(124, 58, 237, 0.55); }
        }

        h1 {
            font-weight: 700;
            font-size: 2.2rem;
            margin-bottom: 0.75rem;
            background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -0.5px;
        }

        p.subtitle {
            color: #94a3b8;
            font-size: 1.05rem;
            margin-bottom: 2.2rem;
            line-height: 1.6;
        }

        .form-control-custom {
            background: rgba(10, 10, 18, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 14px;
            color: #ffffff;
            padding: 0.9rem 1.1rem;
            font-size: 1rem;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .form-control-custom:focus {
            background: rgba(10, 10, 18, 0.9);
            border-color: #7c3aed;
            box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
            color: #ffffff;
            outline: none;
        }

        .btn-custom {
            background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
            border: none;
            border-radius: 14px;
            color: #ffffff;
            padding: 0.9rem 1.5rem;
            font-weight: 600;
            font-size: 1rem;
            width: 100%;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
        }

        .btn-custom:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
            background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
        }

        .btn-custom:active {
            transform: translateY(0);
        }

        .error-message {
            background: rgba(239, 68, 68, 0.08);
            border: 1px solid rgba(239, 68, 68, 0.25);
            color: #fca5a5;
            padding: 0.9rem 1.1rem;
            border-radius: 14px;
            font-size: 0.95rem;
            margin-bottom: 1.8rem;
            text-align: left;
            display: flex;
            align-items: center;
            animation: shake 0.5s linear;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20%, 60% { transform: translateX(-6px); }
            40%, 80% { transform: translateX(6px); }
        }

        .error-message i {
            font-size: 1.25rem;
            margin-right: 0.85rem;
            flex-shrink: 0;
        }

        .footer-text {
            margin-top: 2.2rem;
            font-size: 0.85rem;
            color: #64748b;
        }
    </style>
</head>
<body>
    <div class="glow-circle glow-circle-1"></div>
    <div class="glow-circle glow-circle-2"></div>

    <div class="maintenance-card">
        <div class="icon-container">
            <i class="bi bi-shield-lock"></i>
        </div>
        <h1>Maintenance Mode</h1>
        <p class="subtitle">NEXIUM is currently updating (i know this is vibecoded slop. i dont care. not dealing with you guys.)</p>

        {% with messages = get_flashed_messages(with_categories=true) %}
            {% if messages %}
                {% for category, message in messages %}
                    <div class="error-message">
                        <i class="bi bi-shield-slash-fill"></i>
                        <span>{{ message }}</span>
                    </div>
                {% endfor %}
            {% endif %}
        {% endwith %}

        <form action="/maintenance" method="post">
            <input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
            <div class="mb-3">
                <input type="password" name="password" class="form-control form-control-custom" placeholder="Enter maintenance password" required autocomplete="current-password">
            </div>
            <button type="submit" class="btn btn-custom">
                <i class="bi bi-unlock-fill me-2"></i>Unlock
            </button>
        </form>

        <div class="footer-text">
            &copy; 2026 NEXIUM. All rights reserved.
        </div>
    </div>
</body>
</html>
