<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Command Center — TrollMasters</title>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Bebas+Neue&display=swap" rel="stylesheet">
    <style>
        *, *::before, *::after { box-sizing: border-box; }
        body {
            margin: 0;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #050508;
            font-family: 'Inter', sans-serif;
            color: #e2e8f0;
            position: relative;
            overflow: hidden;
        }
        /* Grid bg */
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background-image:
                linear-gradient(rgba(239,68,68,0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(239,68,68,0.04) 1px, transparent 1px);
            background-size: 40px 40px;
            pointer-events: none;
        }
        /* Radial glow centre */
        body::after {
            content: '';
            position: fixed;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            width: 600px; height: 600px;
            background: radial-gradient(circle, rgba(239,68,68,0.06) 0%, transparent 70%);
            pointer-events: none;
        }
        .login-wrap {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 400px;
            padding: 0 20px;
        }
        /* Logo */
        .logo-area { text-align: center; margin-bottom: 40px; }
        .logo-text {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 32px;
            letter-spacing: 6px;
            color: #ef4444;
            text-shadow: 0 0 30px rgba(239,68,68,0.5);
            line-height: 1;
        }
        .logo-sub {
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            letter-spacing: 4px;
            text-transform: uppercase;
            color: #475569;
            margin-top: 6px;
        }
        /* Card */
        .login-card {
            background: #0d0d14;
            border: 1px solid #1e1e2e;
            border-radius: 16px;
            padding: 36px;
            position: relative;
            overflow: hidden;
        }
        .login-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(239,68,68,0.5), transparent);
        }
        /* Error */
        .error-box {
            background: rgba(239,68,68,0.08);
            border: 1px solid rgba(239,68,68,0.25);
            border-radius: 10px;
            padding: 12px 16px;
            margin-bottom: 20px;
            font-size: 13px;
            color: #fca5a5;
            font-family: 'JetBrains Mono', monospace;
        }
        /* Fields */
        .field { margin-bottom: 16px; }
        .field label {
            display: block;
            font-size: 10px;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: #475569;
            font-family: 'JetBrains Mono', monospace;
            margin-bottom: 8px;
        }
        .field input[type="email"],
        .field input[type="password"] {
            width: 100%;
            background: #080810;
            border: 1px solid #1e1e2e;
            border-radius: 10px;
            padding: 12px 16px;
            color: #e2e8f0;
            font-size: 14px;
            font-family: 'Inter', sans-serif;
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s;
        }
        .field input:focus {
            border-color: rgba(239,68,68,0.4);
            box-shadow: 0 0 0 3px rgba(239,68,68,0.06);
        }
        /* Remember */
        .remember {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 24px;
            margin-top: 4px;
        }
        .remember input { accent-color: #ef4444; width: 14px; height: 14px; }
        .remember label {
            font-size: 12px;
            color: #475569;
            font-family: 'JetBrains Mono', monospace;
            letter-spacing: 1px;
            cursor: pointer;
        }
        /* Submit */
        .btn-login {
            width: 100%;
            background: linear-gradient(135deg, #ef4444, #b91c1c);
            border: none;
            border-radius: 10px;
            padding: 14px;
            color: white;
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 3px;
            text-transform: uppercase;
            cursor: pointer;
            transition: opacity 0.2s, transform 0.15s;
            box-shadow: 0 4px 20px rgba(239,68,68,0.25);
        }
        .btn-login:hover { opacity: 0.9; transform: translateY(-1px); }
        .btn-login:active { transform: translateY(0); }
        /* Footer note */
        .login-footer {
            text-align: center;
            margin-top: 24px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            color: #1e293b;
            letter-spacing: 2px;
        }
    </style>
</head>
<body>
    <div class="login-wrap">
        <div class="logo-area">
            <div class="logo-text">TROLL MASTERS</div>
            <div class="logo-sub">Command Center · Staff Only</div>
        </div>

        <div class="login-card">
            @if($errors->any())
            <div class="error-box">⚠ {{ $errors->first() }}</div>
            @endif

            <form action="{{ route('admin.login.post') }}" method="POST">
                @csrf
                <div class="field">
                    <label for="email">Email Address</label>
                    <input type="email" id="email" name="email" value="{{ old('email') }}" required autofocus autocomplete="email">
                </div>
                <div class="field">
                    <label for="password">Password</label>
                    <input type="password" id="password" name="password" required autocomplete="current-password">
                </div>
                <div class="remember">
                    <input type="checkbox" id="remember" name="remember">
                    <label for="remember">REMEMBER SESSION</label>
                </div>
                <button type="submit" class="btn-login">AUTHENTICATE →</button>
            </form>
        </div>

        <div class="login-footer">RESTRICTED ACCESS · AUTHORISED PERSONNEL ONLY</div>
    </div>
</body>
</html>
