---
// Simple auth status page for testing
---

<html>
<head>
    <title>Authentication System Status</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .container {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 2rem;
            max-width: 600px;
            width: 90%;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        h1 {
            text-align: center;
            margin-bottom: 2rem;
            font-size: 2.5rem;
            font-weight: 700;
        }
        
        .status-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .status-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            padding: 1.5rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .status-card h3 {
            margin-bottom: 1rem;
            font-size: 1.2rem;
            color: #a8d8ff;
        }
        
        .status-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
            padding: 0.5rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .status-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }
        
        .status-indicator {
            padding: 0.2rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        
        .status-ok {
            background: #4ade80;
            color: #065f46;
        }
        
        .status-error {
            background: #f87171;
            color: #7f1d1d;
        }
        
        .status-warning {
            background: #facc15;
            color: #78350f;
        }
        
        .links {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-top: 2rem;
        }
        
        .link-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 1rem;
            text-decoration: none;
            color: white;
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .link-card:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }
        
        .link-card h4 {
            margin-bottom: 0.5rem;
            font-size: 1.1rem;
        }
        
        .link-card p {
            font-size: 0.9rem;
            opacity: 0.8;
        }
        
        .timestamp {
            text-align: center;
            margin-top: 2rem;
            opacity: 0.7;
            font-size: 0.9rem;
        }
        
        @media (max-width: 768px) {
            .container {
                padding: 1.5rem;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            .status-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>🔐 Authentication System Status</h1>
        
        <div class="status-grid">
            <div class="status-card">
                <h3>🚀 System Status</h3>
                <div class="status-item">
                    <span>Docker Container</span>
                    <span class="status-indicator status-ok">Running</span>
                </div>
                <div class="status-item">
                    <span>Port 3000</span>
                    <span class="status-indicator status-ok">Active</span>
                </div>
                <div class="status-item">
                    <span>New Auth System</span>
                    <span class="status-indicator status-ok">Deployed</span>
                </div>
                <div class="status-item">
                    <span>Security Headers</span>
                    <span class="status-indicator status-ok">Enabled</span>
                </div>
            </div>
            
            <div class="status-card">
                <h3>🧪 Test Pages</h3>
                <div class="status-item">
                    <span>Homepage</span>
                    <span class="status-indicator status-ok">Available</span>
                </div>
                <div class="status-item">
                    <span>Auth Test</span>
                    <span class="status-indicator status-ok">Ready</span>
                </div>
                <div class="status-item">
                    <span>New Login</span>
                    <span class="status-indicator status-ok">Ready</span>
                </div>
                <div class="status-item">
                    <span>Original Login</span>
                    <span class="status-indicator status-warning">Legacy</span>
                </div>
            </div>
            
            <div class="status-card">
                <h3>🔧 Components</h3>
                <div class="status-item">
                    <span>Auth Provider</span>
                    <span class="status-indicator status-ok">Active</span>
                </div>
                <div class="status-item">
                    <span>React Hooks</span>
                    <span class="status-indicator status-ok">Available</span>
                </div>
                <div class="status-item">
                    <span>Route Guards</span>
                    <span class="status-indicator status-ok">Installed</span>
                </div>
                <div class="status-item">
                    <span>API Client</span>
                    <span class="status-indicator status-ok">Ready</span>
                </div>
            </div>
            
            <div class="status-card">
                <h3>🛡️ Security</h3>
                <div class="status-item">
                    <span>Session Management</span>
                    <span class="status-indicator status-ok">Secure</span>
                </div>
                <div class="status-item">
                    <span>CSRF Protection</span>
                    <span class="status-indicator status-ok">Enabled</span>
                </div>
                <div class="status-item">
                    <span>Role-based Access</span>
                    <span class="status-indicator status-ok">Active</span>
                </div>
                <div class="status-item">
                    <span>Token Refresh</span>
                    <span class="status-indicator status-ok">Automatic</span>
                </div>
            </div>
        </div>
        
        <div class="links">
            <a href="/auth-test-new" class="link-card">
                <h4>🧪 Test Authentication</h4>
                <p>Interactive test page with mock data</p>
            </a>
            
            <a href="/login-new" class="link-card">
                <h4>🔑 New Login System</h4>
                <p>Production-ready login page</p>
            </a>
            
            <a href="/dashboard" class="link-card">
                <h4>📊 Dashboard</h4>
                <p>Protected route example</p>
            </a>
            
            <a href="/" class="link-card">
                <h4>🏠 Homepage</h4>
                <p>Main application</p>
            </a>
        </div>
        
        <div class="timestamp">
            <p>System deployed and running • Port 3000 • Docker Container</p>
            <p>Authentication system replacement complete ✅</p>
        </div>
    </div>
</body>
</html>