/* 登录页面样式 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #0f172a, #1e293b, #334155);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.game-title {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-title h1 {
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.game-title .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.game-title .year {
    font-size: 1rem;
    color: var(--text-muted);
}

.auth-container {
    width: 100%;
    max-width: 450px;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 1.75rem;
}

.auth-form form {
    width: 100%;
}

.switch-form {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.switch-form a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.switch-form a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.game-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    animation: fadeIn 1s ease 0.6s both;
}

.info-card {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.info-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .game-title h1 {
        font-size: 2.5rem;
    }
    
    .game-title .subtitle {
        font-size: 1rem;
    }
    
    .auth-container {
        max-width: 100%;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
    
    .game-info {
        grid-template-columns: 1fr;
    }
}

/* 输入框焦点效果 */
.auth-form input:focus,
.auth-form select:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* 按钮悬停效果 */
.auth-form .btn-primary {
    width: 100%;
    margin-top: 1rem;
    padding: 0.875rem;
    font-size: 1rem;
}

.auth-form .btn-primary:hover {
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

