* {
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: radial-gradient(1200px 600px at 10% -10%, rgba(255,255,255,0.08), rgba(255,255,255,0) 60%),
                linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.game-hub-header {
    background: linear-gradient(to right, #3494e6, #ec6ead);
    color: white;
    text-align: center;
    padding: 30px;
}

.game-hub-header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-hub-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.form-container {
    padding: 30px;
}

.form-toggle {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
}

.toggle-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.15s ease;
}

.toggle-btn.active {
    color: #3498db;
    border-bottom: 3px solid #3498db;
}

.toggle-btn:hover { color: #4aa3e0; transform: translateY(-1px); }

.form {
    text-align: center;
    display: none;
}

.form.active {
    display: block;
}

#message-box { display:none; }

.message-box.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message-box.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Auth form styling */
.form-content { padding: 10px 0 0 0; }
.form h2 { margin: 10px 0 18px; color: #2c3e50; }
.input-group { text-align: left; margin: 12px auto; max-width: 360px; }
.input-group label { display: block; font-weight: 600; color: #555; margin-bottom: 6px; }
.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dfe6e9;
    border-radius: 10px;
    background: #fff;
    outline: none;
    font-size: 0.95rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.input-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}
.submit-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 12px 20px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .08s ease, background .2s ease, box-shadow .2s ease;
}
.submit-btn:hover { background: #2d89c6; box-shadow: 0 6px 16px rgba(52,152,219,.35); }
.submit-btn:active { transform: translateY(1px); }

.game-previews {
    display: flex;
    padding: 30px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.game-preview {
    flex: 1;
    text-align: center;
    padding: 20px;
}

.game-preview h3 {
    color: #3498db;
    margin-bottom: 15px;
}

.game-preview p {
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .game-previews {
        flex-direction: column;
    }
    
    .game-preview {
        margin-bottom: 20px;
    }
}