<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Admin Bypass | CoreFlux</title>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Roboto+Mono:wght@400;700&display=swap');

        :root {
            --primary-gradient-start: #00F2FE; /* From logo - light blue */
            --primary-gradient-end: #4FACFE;   /* From logo - darker blue */
            --accent-pink: #FF00FF;            /* From logo - vibrant pink */
            --background-dark: #0A0A0A;        /* Deep black background */
            --card-bg: #1A1A1A;                /* Slightly lighter card background */
            --text-light: #E0E0E0;
            --text-muted: #B0B0B0;
            --border-color: rgba(0, 242, 254, 0.3);
            --shadow-light: rgba(0, 242, 254, 0.2);
            --shadow-dark: rgba(79, 172, 254, 0.2);
            --error-red: #FF4444;
        }

        body {
            margin: 0;
            font-family: 'Montserrat', sans-serif;
            background-color: var(--background-dark);
            color: var(--text-light);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            text-align: center;
            padding: 20px;
            box-sizing: border-box;
        }

        .container {
            max-width: 450px;
            width: 100%;
            background-color: var(--card-bg);
            border-radius: 15px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            border: 1px solid var(--border-color);
            position: relative;
            z-index: 1;
        }

        h1 {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
            font-size: 2.5rem;
            background: linear-gradient(90deg, var(--primary-gradient-start), var(--primary-gradient-end));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-top: 0;
            margin-bottom: 20px;
            letter-spacing: -1px;
        }

        p {
            font-size: 1.05rem;
            line-height: 1.7;
            color: var(--text-light);
            margin-bottom: 25px;
        }

        form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        input[type="password"] {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background-color: rgba(50, 50, 50, 0.7);
            color: var(--text-light);
            font-family: 'Roboto Mono', monospace;
            font-size: 1rem;
            box-sizing: border-box; /* Include padding in width */
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        input[type="password"]:focus {
            outline: none;
            border-color: var(--primary-gradient-start);
            box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
        }

        .btn {
            display: inline-block;
            padding: 15px 30px;
            border-radius: 50px;
            background: linear-gradient(45deg, var(--primary-gradient-start), var(--primary-gradient-end));
            color: #fff;
            font-weight: 700;
            text-decoration: none;
            transition: all 0.4s ease;
            box-shadow: 0 0 15px rgba(0, 242, 254, 0.3), 0 0 25px rgba(79, 172, 254, 0.3);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            border: none; /* Remove default button border */
            cursor: pointer;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: all 0.6s ease;
            z-index: -1;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn:hover {
            background: linear-gradient(45deg, var(--primary-gradient-end), var(--accent-pink));
            box-shadow: 0 0 20px var(--accent-pink), 0 0 30px var(--primary-gradient-end);
            transform: translateY(-2px);
        }

        .error-message {
            color: var(--error-red);
            font-size: 0.95rem;
            margin-top: 15px;
            font-weight: 600;
            text-shadow: 0 0 5px rgba(255, 68, 68, 0.3);
        }

        footer {
            margin-top: 40px;
            font-size: 0.85rem;
            color: var(--text-muted);
            text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>Admin Bypass Access</h1>
        <p>Enter the bypass password to access the site.</p>

        <!-- Display error message using the View class's placeholder -->
        <p class="error-message">{{$error}}</p>

        <form method="POST">
            <input type="password" name="password" placeholder="Bypass Password" required>
            <button type="submit" class="btn">Access Site</button>
        </form>
    </div>

    <footer>
        &copy; {{date('Y')}} CoreFlux Framework.
    </footer>
</body>
</html>