/* 🔐 登录/注册弹窗样式 */

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    position: relative;
    max-width: 450px;
    margin: 80px auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--gta-primary, #e65100);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-close:hover {
    color: var(--gta-primary, #e65100);
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.auth-tab.active {
    color: var(--gta-primary, #e65100);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gta-primary, #e65100);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-form h2 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gta-primary, #e65100);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
    color: #666;
}

.error-message {
    color: #ff4757;
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 20px;
    text-align: center;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--gta-primary, #e65100);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-submit-btn:hover {
    background: var(--gta-secondary, #ff9800);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 81, 0, 0.4);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-hint {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-top: 20px;
}

.auth-hint a {
    color: var(--gta-primary, #e65100);
    text-decoration: none;
    font-weight: bold;
}

.auth-hint a:hover {
    text-decoration: underline;
}

/* 用户信息显示 */
#user-info {
    display: none;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gta-primary, #e65100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}

#username-display {
    color: #fff;
    font-weight: bold;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: var(--gta-primary, #e65100);
    border-color: var(--gta-primary, #e65100);
}

/* 响应式 */
@media (max-width: 768px) {
    .auth-modal-content {
        margin: 20px;
        padding: 30px 20px;
        max-width: none;
    }

    .auth-form h2 {
        font-size: 20px;
    }

    .form-group input {
        padding: 10px 12px;
    }
}
